File: safemalloc.h

package info (click to toggle)
fvwm 1%3A2.6.8-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster
  • size: 15,804 kB
  • sloc: ansic: 145,770; xml: 17,093; perl: 7,302; sh: 4,921; makefile: 1,094; yacc: 688; lex: 187; sed: 11
file content (13 lines) | stat: -rw-r--r-- 291 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* -*-c-*- */

/*
 *
 *  Procedure:
 *      safe?alloc - mallocs/callocs specified space or exits if there's a
 *                   problem
 *
 */
char *safemalloc(int length);
char *safecalloc(int num, int length);
char *saferealloc(char *ptr, int length);
char *safestrdup(const char *s);