Adhere to style guidelines

This commit is contained in:
call-cc 2020-06-01 19:42:22 -04:00
parent cb17679d67
commit 30192aeb44
2 changed files with 6 additions and 4 deletions

View File

@ -2,9 +2,10 @@
#include <libgen.h> #include <libgen.h>
int int
main(int argc, char *argv[]) { main(int argc, char *argv[])
char *dir; {
if((dir = dirname(argv[1])) == NULL) { char *dir = dirname(argv[1]);
if(dir == NULL) {
fprintf(stderr, "%s", argv[0]); fprintf(stderr, "%s", argv[0]);
return 1; return 1;
} }

View File

@ -2,7 +2,8 @@
#include <stdio.h> #include <stdio.h>
int int
main() { main()
{
puts(getcwd(NULL, 0)); puts(getcwd(NULL, 0));
return 1; return 1;
} }