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>
int
main(int argc, char *argv[]) {
char *dir;
if((dir = dirname(argv[1])) == NULL) {
main(int argc, char *argv[])
{
char *dir = dirname(argv[1]);
if(dir == NULL) {
fprintf(stderr, "%s", argv[0]);
return 1;
}

View File

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