I get a compiler error: (83) error: wrong pointer / integer combination: arg # 1.
Here is the code that does this:
char boot_time[BUFSIZ];
... line 83:
strftime(boot_time, sizeof(boot_time), "%b %e %H:%M", localtime(table[0].time));
where table is a structure and time is a member of time_t.
I read that "incorrect pointer / integer combo" means that the function is undefined (since functions return ints in C when they are not found), and the normal solution should include some libraries. strftime () and localtime () both in time .h and sizeof () in string.h, both of which I included (along with stdio.h), I am completely stopped here.
Alison
source
share