hi
is there a way to flush stdout before calling printf?
hi
is there a way to flush stdout before calling printf?
ah ok pretty straight forward thanks mate
Just curios - why do you need it BEFORE printf?
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
not exactly before printf... i said before printf to make the question more understandable for what i'm trying to do...
But what happened was that from after a fork i was calling a function, where while this function was getting executed before getting ready to print, the caller of the function was waiting on a signal to print a long stream, where when the child prints his stuff(before sending the signal it was getting mixed with the stuff of the caller which i didn't want to show yet.... Anyway tried to explain it... but it worked now