names.h 367 B

123456789101112131415161718192021222324
  1. // names.h --revised with include protection
  2. #ifndef NAMES_H_
  3. #define NAMES_H_
  4. // constants
  5. #define SLEN 32
  6. // structure declarations
  7. struct names_st
  8. {
  9. char first[SLEN];
  10. char last[SLEN];
  11. };
  12. // typedefs
  13. typedef struct names_st names;
  14. // function prototypes
  15. void get_names(names *);
  16. void show_names(const names *);
  17. char * s_gets(char * st, int n);
  18. #endif