> jo_xavier18 <> [20080404 17:59:03 -0000]:
>>
>> The function sleep dont work
>>
>> #include <stdio.h>
>> #include <sys/time.h>
>> #include <unistd.h>
>> int main(){
>> printf("teste");
>> sleep(1);
>> }
>> The output stays locked, don't shows "teste", but without sleep yes.
Try putting a newline at the end of your strings (e.g. "teste\n").
stdio is buffered, and typically doesn't flush until the end of the line.
> ___________________________________
> / None love the bearer of bad news. \
> | |
> \ -- Sophocles /
> -----------------------------------
> \ ^__^
> \ (oo)\_______
> (__)\ )\/\
> ||----w |
> || ||
Do you hand-pick your sayings to match the article, or do is the humor
un-intentional? :)
______ Best Regards,
|__ __/ Michael Schmidt
|| Software Engineer
||echnologic Systems (EmbeddedARM.com)
|| (480) 16610 East Laser Drive #10
|/ 837-5200 Fountain Hills, AZ 85268
http://oz.embeddedarm.com/~michael
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|