Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/misc/bogosort/files/patch-sortedp.c
18157 views
1
--- sortedp.c.orig Wed Aug 11 15:30:34 2004
2
+++ sortedp.c Wed Aug 11 15:30:49 2004
3
@@ -38,6 +38,8 @@
4
{
5
int i;
6
7
+ if (lines[0] == NULL)
8
+ return 1;
9
for (i = 1; lines[i] != NULL; i++)
10
if (strcmp(lines[i - 1], lines[i]) > 0)
11
return 0;
12
13