IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 23, 2008, 11:29:20 AM (18 years ago)
Author:
eugene
Message:

adding book shuffle function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/book_commands.c

    r16139 r16631  
    378378}
    379379
     380int book_shuffle (int argc, char **argv) {
     381
     382  int where, N;
     383  char *varName, *keyName, *keyValue;
     384  Book *book;
     385  Page *page;
     386
     387  if (argc != 2) {
     388    gprint (GP_ERR, "USAGE: book shuffle (book)\n");
     389    return FALSE;
     390  }
     391
     392  book = FindBook (argv[1]);
     393  if (book == NULL) {
     394    gprint (GP_ERR, "book %s not found\n", argv[1]);
     395    return FALSE;
     396  }
     397
     398  ShufflePages (book);
     399  return TRUE;
     400}
     401
    380402int book_setword (int argc, char **argv) {
    381403
Note: See TracChangeset for help on using the changeset viewer.