#include "f2c.h"Include dependency graph for fmtlib.c:

Go to the source code of this file.
Defines | |
| #define | MAXINTLENGTH 23 |
| #define | longint long |
| #define | ulongint unsigned long |
Functions | |
| char * | f__icvt (longint value, int *ndigit, int *sign, int base) |
| #define ulongint unsigned long |
Definition at line 19 of file fmtlib.c.
References buf, i, MAXINTLENGTH, and ulongint.
Referenced by lwrt_I(), wrt_I(), and wrt_IM().
00021 { 00022 static char buf[MAXINTLENGTH+1]; 00023 register int i; 00024 ulongint uvalue; 00025 00026 if(value > 0) { 00027 uvalue = value; 00028 *sign = 0; 00029 } 00030 else if (value < 0) { 00031 uvalue = -value; 00032 *sign = 1; 00033 } 00034 else { 00035 *sign = 0; 00036 *ndigit = 1; 00037 buf[MAXINTLENGTH-1] = '0'; 00038 return &buf[MAXINTLENGTH-1]; 00039 } 00040 i = MAXINTLENGTH; 00041 do { 00042 buf[--i] = (char) ((uvalue%base) + '0'); 00043 uvalue /= base; 00044 } 00045 while(uvalue > 0); 00046 *ndigit = MAXINTLENGTH - i; 00047 return &buf[i]; 00048 }
Here is the caller graph for this function:

1.5.1