|
@@ -88,14 +88,14 @@ just in case, it'd be a good idea to map inputs to variables.
|
|
|
#include "string.h"
|
|
|
#include "stdio.h"
|
|
|
|
|
|
-int main() {
|
|
|
- // Don't do this
|
|
|
- printf("%d\n", strcspn("Hello", "Hi"));
|
|
|
-
|
|
|
- // Do this
|
|
|
- char *first = "Hello";
|
|
|
- char *second = "Hi";
|
|
|
- printf("%d\n", strcspn(first, second));
|
|
|
+int main(void) {
|
|
|
+ // Don't do this
|
|
|
+ printf("%d\n", strcspn("Hello", "Hi"));
|
|
|
+
|
|
|
+ // Do this
|
|
|
+ char *first = "Hello";
|
|
|
+ char *second = "Hi";
|
|
|
+ printf("%d\n", strcspn(first, second));
|
|
|
}
|
|
|
```
|
|
|
|
|
@@ -120,4 +120,4 @@ You can test against verified correct output with `make verify` in the tests
|
|
|
directory. You will need to manually create the correct output and put it in the
|
|
|
tests/expected directory. Running any `make` commands in the tests directory
|
|
|
will ***not*** rebuild relibc, so you'll need to go back to the root directory
|
|
|
-if you need to rebuild relibc.
|
|
|
+if you need to rebuild relibc.
|