본문 바로가기

IT

rm1.c

#include <unistd.h>


int main(int ac, char* av[])

{

int result;


if (ac >= 2)

{

result = unlink(av[1]);

if (result == -1)

perror(av[1]);

else if(result == 0)

printf("success wwwwwwwwwwwwww\n");

}

return 0;

}



'IT' 카테고리의 다른 글

fcntl을 이용한 (뭐하는지 모르겠는) 코드  (0) 2014.10.08
getchar를 이용한 (뭐하는지 모르겠는)  (0) 2014.10.08
mkdir1.c  (0) 2014.10.01
pwd2.c  (0) 2014.10.01
pwd1.c  (0) 2014.10.01