calling my custom function same as library function
From: Deniz Bahar (deniz.bahar_at_gmail.com)
Date: 02/28/05
- Next message: Kenny McCormack: "Re: calling my custom function same as library function"
- Previous message: Rouben Rostamian: "Re: Please critique my code/program"
- Next in thread: Kenny McCormack: "Re: calling my custom function same as library function"
- Reply: Kenny McCormack: "Re: calling my custom function same as library function"
- Reply: Walter Roberson: "Re: calling my custom function same as library function"
- Reply: Jack Klein: "Re: calling my custom function same as library function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 27 Feb 2005 17:55:39 -0800
Hi,
I would like to call one of my functions the exact name as an existing
C library function (for example K&R2 exercises asks me to make an atof
function). If I don't include the header with the declaration for the
C library function (stdlib.h in this case) then define/declare my own
function with the same name, am I safe? It seems to work on my
compiler, but I wonder if this is portable or even acceptable? thx
- Next message: Kenny McCormack: "Re: calling my custom function same as library function"
- Previous message: Rouben Rostamian: "Re: Please critique my code/program"
- Next in thread: Kenny McCormack: "Re: calling my custom function same as library function"
- Reply: Kenny McCormack: "Re: calling my custom function same as library function"
- Reply: Walter Roberson: "Re: calling my custom function same as library function"
- Reply: Jack Klein: "Re: calling my custom function same as library function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|