search for: zpad

Displaying 3 results from an estimated 3 matches for "zpad".

Did you mean: pad
2000 Jan 06
1
bsd-snprintf.c and NeXT.
I'm wonder if anyone happens to have a simplier (slower) version of bsd-snprintf.c. It seems NeXT 3.3 (unsure about 4.2) is missing mprotect(). If I could get something to replace that for a while and fix some of theses utmp in login.c issues I may have a rough port NeXT to black hardware.=) Thanks
1999 Dec 10
0
snprintf from postgresql
...= 0; dopr(str, fmt, args); if (count > 0) end[0] = 0; if (SnprfOverflow) elog(NOTICE, "vsnprintf overflow, len = %d, str = %s", count, str); return strlen(str); } /* * dopr(): poor man's version of doprintf */ static void fmtstr(char *value, int ljust, int len, int zpad, int maxwidth); static void fmtnum(long_long value, int base, int dosign, int ljust, int len, int zpad); static void fmtfloat(double value, char type, int ljust, int len, int precision, int pointflag); static void dostr(char *str, int cut); static void dopr_outch(int c); static char *output; sta...
2003 Mar 15
1
BUG: snprintf() with floating point numbers
Hello, I used the snprintf.{c,h} in rsync for my code, and found a bug in it: snprintf(s,16,"%f",0.025) results "0.250000". The problem is in snprintf.c, in fmtfp(), around line 732. I didn't try the solution (I do not need it anymore), but the zpadding number of '0'-s should be placed before fconvert. I am not in the list, so please cc the answer for the address above, too. Regards, Circum