calling my custom function same as library function

From: Deniz Bahar (deniz.bahar_at_gmail.com)
Date: 02/28/05


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



Relevant Pages

  • Re: calling my custom function same as library function
    ... > I would like to call one of my functions the exact name as an existing ... If I don't include the header with the declaration for the ... > C library function then define/declare my own ... define it with the static keyword, which means you can only call it by ...
    (comp.lang.c)
  • Re: Module definition file problem
    ... i am having the same typs of error ... I have a fucntion with that exact same name. ... I want it to link to my function and ignore the library function. ...
    (microsoft.public.vc.language)
  • K&R Exercise 6-2
    ... In most of the exercises that K&R write, ... relationship to some library function or some aspect of C that is used ... variable names that are identical in the first 6 characters, ... words within strings and comments. ...
    (comp.lang.c)