Name: Anonymous 2014-06-07 6:37
gcc following standards
% diff -c olddubs.c dubs.c
olddubs.c:11,18 - dubs.c:11,20
exits("missing argument");
}
- x = atoi(argv[1]);
- if(x % 11)
+ x = strlen(argv[1]);
+ if(x < 2)
+ exits("unit");
+ if(argv[1][--x] != argv[1][--x])
exits("not doubles");
else
print("Check my doubles!\n");