IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25104


Ignore:
Timestamp:
Aug 18, 2009, 6:22:43 AM (17 years ago)
Author:
eugene
Message:

make mktemp consistent with API (incomplete)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/Ohana/src/tools/src/mktemp.c

    r12333 r25104  
    33
    44int main (int argc, char **argv) {
     5
     6  char *prefix;
     7
     8  prefix = NULL;
     9
     10  for (i = 0; i < argc; i++) {
     11    if (argv[i][0] == '-') {
     12      if (!strcmp(argv[i], "-V")) {
     13        fprintf (stdout, "mktemp version Ohana $Revision: $");
     14        exit (0);
     15      }
     16      if (!strcmp(argv[i], "-p")) {
     17        if (argc <= i - 1) usage();
     18        i++;
     19        prefix = argv[i];
     20        continue;
     21      }
     22      for (j = 0; j < strlen(argv[i]) - 1; j++) {
     23        if (!argv[i][j] == 'q') {
     24        }
     25      }
     26
    527
    628  if (argc != 2) {
     
    1638}
    1739 
     40      usage() {
     41        fprintf (stderr, "Usage: mktemp [-V] | [-dqtu] [-p prefix] [template]\n");
     42        exit (1);
     43      }
Note: See TracChangeset for help on using the changeset viewer.