Changeset 1550 for zzuf


Ignore:
Timestamp:
Jan 3, 2007, 11:10:57 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Implemented %c in our debug() printf implementation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/debug.c

    r1535 r1550  
    7676            break;
    7777
    78         if(*f == 'i')
     78        if(*f == 'c')
     79        {
     80            char i = (char)(unsigned char)va_arg(args, int);
     81            write(fd, &i, 1);
     82        }
     83        else if(*f == 'i')
    7984        {
    8085            int i = va_arg(args, int);
     
    126131        else
    127132        {
    128             write(fd, f, 1);
     133            write(fd, f - 1, 2);
    129134        }
    130135    }
Note: See TracChangeset for help on using the changeset viewer.