안녕하세요~
제가 프로그램 배우면서 업무를 보게 되었습니다.
제가 짜고자 하는 프로그램은 특정 파일("/root/work/vpn_state/t.txt")을 주기적으로 파일을 열어 0이면 printf로 출력을 하는 것입니다.
밑에는 제가 책 보면서 짠건데 0이 아닌데도 루프가 돌지 않네요
선배님들의 도움을 받고 싶습니다.
안녕하세요. c 언어 공부하고 있습니다.
책이 원서라 진도가 안나가네요.
#include
/* count digits, white space, others */
main()
{
int c, i, nwhite, nother;
int ndigit[10];
nwhite = nother = 0;
for (i = 0; i < 10; ++i)
ndigit[i] = 0;
while ((c = getchar()) != EOF)
aligned_malloc and aligned_free functions can use the C runtime
functions malloc and free in their implementation. aligned_malloc takes
the size of the buffer you would like to allocate and also alignment
which is guaranteed to be a power of 2 that will force the starting