String formatting in signal handler

Randi Botse <[email protected]> Sat, 20 Oct 2012 22:03:49 +0700
Newsgroups org.kernel.vger.linux-c-programming
Message-ID <CAA6iF_48vgd8Shu-49w-3mJMSi-5eMbVGFFER5RYEkKKCkv3Nw@mail.gmail.com>
Hi List,

Almost (maybe all) function from the standard library stdio.h and
string.h are not safely to be called by signal handler. If so, how to
format string in a signal handler?. I want to log some signals which
sent to my program, the contents is for example: time, the signal
number itself, etc, and then write it to a file.

Regards.