Back to index

courier  0.68.2
Functions
strpidt.c File Reference
#include "numlib.h"
#include <string.h>

Go to the source code of this file.

Functions

char * libmail_str_pid_t (pid_t t, char *arg)

Function Documentation

char* libmail_str_pid_t ( pid_t  t,
char *  arg 
)

Definition at line 13 of file strpidt.c.

{
char   buf[NUMBUFSIZE];
char   *p=buf+sizeof(buf)-1;

       *p=0;
       do
       {
              *--p= '0' + (t % 10);
              t=t / 10;
       } while(t);
       return (strcpy(arg, p));
}

Here is the caller graph for this function: