#ifndef in C

From: Brian Lavender (brian@brie.com)
Date: Mon Jul 26 1999 - 14:07:53 PDT


What exactly does this mean in C?

#ifndef NO_STDLIB_H

It coems from Bill Kendrick's c library at
ftp://ftp.sonic.net/pub/users/nbs/unix/www/cgi-util/cgi-util.c
Section quoted below.

/*
  cgi-util.c
  
  created by Bill Kendrick
  kendrick@zippy.sonoma.edu
  http://zippy.sonoma.edu/~kendrick/
  
  based on "post-query.c" and "query.c" by NCSA
  
  New Breed Software
  
  April 6, 1996 - January 28, 1997
*/

#include <stdio.h>

#ifndef NO_STDLIB_H
#include <stdlib.h>
#else
char *getenv();
#endif

#include <string.h>
#include "cgi-util.h"

#define LF 10
#define CR 13

brian

--
Brian Lavender
Sacramento,CA
Brie Business Directory - Napa Valley     http://www.brie.com/bbd/
(916) 628-0726

"I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me." -- Hunter S. Thompson



This archive was generated by hypermail 2b29 : Fri Feb 25 2000 - 14:29:06 PST