Search Results

Search: Posts Made By: tazan_007
Forum: Programming 12-12-2008
8,184
Posted By tazan_007
Thanks for all, What i need is "why".
Thanks for all,
What i need is "why".
Forum: Programming 12-07-2008
8,184
Posted By tazan_007
Hi, My example is: int a = 12; char...
Hi,
My example is:

int a = 12;
char *str;
str = malloc(2*sizeof(char));
read(0,str,a);
printf("%s %d",str,strlen(str));

if you run the program and type: "0123456789012" means 12...
Forum: Programming 12-06-2008
8,184
Posted By tazan_007
Strange character added when reading to buffer with length of 12
Hi all,
I got trouble with reading and writing ( to standard input/output, file, socket whatever...).
I will briefly describe it by giving this example. I want to read a long string from keyboard...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 11:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy