URI:
       ttestprint.c - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
       ttestprint.c (333B)
       ---
            1 #include <u.h>
            2 #include <libc.h>
            3 
            4 void
            5 main(int argc, char **argv)
            6 {
            7         char c;
            8 
            9         c = argv[1][strlen(argv[1])-1];
           10         if(c == 'f' || c == 'e' || c == 'g' || c == 'F' || c == 'E' || c == 'G')
           11                 print(argv[1], atof(argv[2]));
           12         else if(c == 'x' || c == 'u' || c == 'd' || c == 'c' || c == 'C' || c == 'X')
           13                 print(argv[1], atoi(argv[2]));
           14 }