« first day (2374 days earlier)      last day (1261 days later) » 

6:12 AM
Could you please explain to me thise 3 dots? The first one I understand but I think there is a mistake where the "latter" should be the "former". The 2nd and 3rd points are vague and I don't understand what they want to say. An example should be grate or a better / simpler explanation ?
@VioAriton I don't get it :)) Could you explain ? It looks interesting the last example u shared
 
 
4 hours later…
10:11 AM
The second one just tells you that the function reads until it gets to a newline charcter, i.e \n
Helloc World\nHelloc - your buffer would contain Helloc World
I think the last one refers to how it interprets the data. If the file would contain the string Helloc World, then each character would have a certain number associated with it so when you read that number it knows what to display to you
If you do printf("%c", 72); it displays H
 
 
3 hours later…
1:36 PM
@CătălinaSîrbu mhm, not sure about 3rd. fread() and fprintf() is nothing alike.
the whole family of *printf() functions ifused for formatted ouput. Basically, You provide the "format" like a template, and it fills parts of the string with the values of provided variables.
Something like following:

int house_nr = 15;
char flat_id = 'c';
printf("House nr: %d, flat id: %c \n, house_nr, flat_id);
 
what if my house nr is > 2^31
 
 
2 hours later…
4:13 PM
Hi, does anybody has idea about how to cross compile c program which references a shared object that has references to GLIBC_2.0 symbols in ARM architecture (32 bit)?
 
5:07 PM
In the simplified shell program, the program uses two arrays of chars, as shown below (in the code userin.c) static char inpbuf[MAXBUF], tokbuf[2 * MAXBUF], *ptr = inpbuf, *tok = tokbuf; As per explaination, the array inpbuf is intended to store the user typed command and its arguments. The array tokbuf is intended to store each extracted tokens from inpbuf, such that, each element in the array char *arg[MAXARG + 1]; (in proc_line.c) is properly assigned using the information in tokbuf in order later on to invoke execvp system call in runcommand.c. You do not have to use tokbuf. Make any ne
can someone help me with this
 

« first day (2374 days earlier)      last day (1261 days later) »