home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
b
/
bmh02src.zip
/
NEXT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-08-16
|
581b
|
36 lines
/*
next.c : Copyright Paul Healy, EI9GL, 1992.
920712 : Created
*/
#include <stdio.h>
#include "rc.h"
#include "help.h"
#include "current.h"
#ifdef BMH
#define main next_main
#endif
int show_main(int argc, char *argv[]);
int
main(int argc, char *argv[])
{
int msg;
char *s, *arg[2], num[20];
dohelp(argc, argv, "next [+folder]");
if (loadconfig()==-1)
return -1;
if (getcurrent(argc, argv, &s, &msg) == -1)
return -1;
sprintf(num, "%d", msg+1);
arg[1] = num;
return show_main(2, arg);
}