linux - Does vprintf thread safe in c language? -
i writing 1 application using on library using vprintf print information. same way using vprintf application.
in scenario vprintf not working.
you provide more information in regards mere
in scenario vprintf not working
anyways, vprintf()
thread-safe function has limitation read following write or write following read there must flush work done. may flushing solve problem you.
for vprintf()
arg_ptr
of type va_list
points list of arguments, initialing arguments va_start()
each call of vprintf()
should resolve issue. also, can control increment of ar_ptr
after each vprintf()
call means of va_end()
Comments
Post a Comment