IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29351


Ignore:
Timestamp:
Oct 7, 2010, 8:28:11 PM (16 years ago)
Author:
eugene
Message:

add additional format options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/Ohana/src/opihi/cmd.basic/fprintf.c

    r9196 r29351  
    4040    switch (*p1) {
    4141      case 'e':
     42      case 'g':
    4243      case 'f':
     44      case 'E':
     45      case 'F':
     46      case 'G':
    4347        sprintf (tmp, fmt, atof(argv[i]));
    4448        break;
     
    4751        break;
    4852      case 'd':
     53      case 'o':
     54      case 'i':
     55      case 'u':
    4956      case 'c':
    5057      case 'x':
     58      case 'X':
    5159        sprintf (tmp, fmt, atoi(argv[i]));
    5260        break;
    5361      default:
    54         gprint (GP_ERR, "syntax error in format (only e,f,s,d,c,x allowed)\n");
     62        gprint (GP_ERR, "syntax error in format (e,f,g,E,F,G,c,s,d,i,o,x,X conversions allowed)\n");
    5563        return (FALSE);
    5664    }
Note: See TracChangeset for help on using the changeset viewer.