47 lines
1.5 KiB
C
47 lines
1.5 KiB
C
|
|
//////////////////////////////////////////////////////////////
|
|
//
|
|
// Header file for Restart
|
|
//
|
|
// This file is generated by RapidApp 1.2
|
|
//
|
|
// This class is derived from RestartUI which
|
|
// implements the user interface created in
|
|
// RapidApp. This class contains virtual
|
|
// functions that are called from the user interface.
|
|
//
|
|
// When you modify this header file, limit your changes to those
|
|
// areas between the "//---- Start/End editable code block" markers
|
|
//
|
|
// This will allow RapidApp to integrate changes more easily
|
|
//
|
|
// This class is a ViewKit user interface "component".
|
|
// For more information on how components are used, see the
|
|
// "ViewKit Programmers' Manual", and the RapidApp
|
|
// User's Guide.
|
|
//////////////////////////////////////////////////////////////
|
|
#ifndef CVIEW_H
|
|
#define CVIEW_H
|
|
#include <ckpt.h>
|
|
//---- Start editable code block: headers and declarations
|
|
|
|
#define SPACE(c) ((c) == ' ' || (c) == '\t')
|
|
#define ISEND(c) ((c) == '\n' || (c) == 0)
|
|
#define FINDSPACE(c) {while (!SPACE(*p)) p++;}
|
|
#define SKIPSPACE(p) {while (SPACE(*(p)) && !ISEND(*(p))) (p)++;}
|
|
#define SKIPALNUM(p) {while (isalnum(*(p)) && !ISEND(*(p))) (p)++;}
|
|
|
|
/* Structure for storing user info */
|
|
#define UDQ 50
|
|
#define MAXLOGIN 8
|
|
struct udata {
|
|
uid_t uid; /* numeric user id */
|
|
char name[MAXLOGIN]; /* login name, may not be null terminated */
|
|
};
|
|
|
|
extern char *finduname(register uid_t);
|
|
extern void getpasswd(void);
|
|
|
|
//---- End editable code block: headers and declarations
|
|
#endif
|