void get_option ();
-void main (argc, argv)
-int argc;
-char *argv [];
+void main (int argc, char *argv [])
{
int c;
* If the pattern "%|nls-???-###|" is found in the template file, replace it
* by big_buff.
*/
-void process_message ()
+void process_message (void)
{
int c;
int m = 0;
/*
* Get a character from template. Incriment line count if new line is found.
*/
-int get_char ()
+int get_char (void)
{
int c;
/*
* Open message files
*/
-void cat_open ()
+void cat_open (void)
{
char line[255];
if(pfile != NULL)
{
-#if defined(USL) || defined(__uxp__)
- sprintf(line,"/usr/bin/gencat -m ./.dt_pfile.cat %s",pfile);
-#else
sprintf(line,"/usr/bin/gencat ./.dt_pfile.cat %s",pfile);
-#endif
if ( system(line) != 0 )
{
fatal("primary .tmsg file would not gencat\n",0,9);
if(dfile != NULL)
{
-#if defined(USL) || defined(__uxp__)
- sprintf(line,"/usr/bin/gencat -m ./.dt_dfile.cat %s",dfile);
-#else
sprintf(line,"/usr/bin/gencat ./.dt_dfile.cat %s",dfile);
-#endif
if ( system(line) != 0 )
{
fatal("default .tmsg file would not gencat\n",0,9);
/*
* Search a message by specified number. If found, returns 1 and the message
* will be set in big_buff. If not found, returns 0.
+ * msg, message number to be searched
*/
-int find_message (msg)
-int msg; /* message number to be searched */
+int find_message (int msg)
{
int ret = 0;
* Search a line starts with the message number in specified file. If found,
* the line will be passed to get_message() and returns 1.
* If not found, returns 0.
+ *
+ * msg, message number to be searched
+ * file, 0: Primary message file, 1: Default message file
*/
-int find_msg_in_file (msg, file)
-int msg; /* message number to be searched */
-int file; /* 0: Primary message file, 1: Default message file */
+int find_msg_in_file (int msg, int file)
{
big_buff = catgets(catfile[file],1,msg,"MSG_NOT_FOUND");
if ( strcmp(big_buff,"MSG_NOT_FOUND") )
/*
* Parse command line options.
*/
-void get_option (argc, argv)
-int *argc;
-char *argv[];
+void get_option (int *argc, char *argv[])
{
int i;