Annotation of embedaddon/ntp/libntp/inttoa.c, revision 1.1

1.1     ! misho       1: /*
        !             2:  * inttoa - return an asciized signed integer
        !             3:  */
        !             4: #include <config.h>
        !             5: #include <stdio.h>
        !             6: 
        !             7: #include "lib_strbuf.h"
        !             8: #include "ntp_stdlib.h"
        !             9: 
        !            10: char *
        !            11: inttoa(
        !            12:        long val
        !            13:        )
        !            14: {
        !            15:        register char *buf;
        !            16: 
        !            17:        LIB_GETBUF(buf);
        !            18:        snprintf(buf, LIB_BUFLENGTH, "%ld", val);
        !            19: 
        !            20:        return buf;
        !            21: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>