cap.c 348 B

123456789101112131415161718
  1. /*
  2. (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. /*
  6. Module: cap; implementation of CAP
  7. Author: Ceriel J.H. Jacobs
  8. Version: $Id$
  9. */
  10. cap(u)
  11. unsigned u;
  12. {
  13. register unsigned *p = &u;
  14. if (*p >= 'a' && *p <= 'z') *p += 'A'-'a';
  15. }