terminals and C -


i reading book called "beginning linux programming". ask line of code (from page 204):

if (output_stream) putc(char_to_write, output_stream); 

i can't understand line. appreciated.

in

if (output_stream) putc(char_to_write, output_stream); 

if(output_stream) condition. if output_stream not null, putc execute.

the function putc declaration int putc (int char, file *stream) writes character (an unsigned char) specified argument char specified stream , advances position indicator stream.
in short, writes character(first argument) second argument.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -