Re: Short form of __FILE__
- From: Eric Sosman <Eric.Sosman@xxxxxxx>
- Date: Tue, 07 Feb 2006 17:38:32 -0500
Emmanuel Delahaye wrote On 02/07/06 13:47,:
Lukas Ruf a écrit :
Dear all,
for debugging purposes, I like the pre-compiler macros
__FILE__, __FUNCTION__, __LINE__
[C99] ITYM __func__
I have been wondering if there is a short form of __FILE__ that
provides only the filename without path.
Nope, it's implementation dependent. There is nothing that prevents you
to use strrchr() to find the last '/' or '\\' in the __FILE__ string...
... or ']' or '>' or '(' membername ')' or ...
--
Eric.Sosman@xxxxxxx
.
- References:
- Short form of __FILE__
- From: Lukas Ruf
- Re: Short form of __FILE__
- From: Emmanuel Delahaye
- Short form of __FILE__
- Prev by Date: Re: whats there in C that is not in C++ and VC++
- Next by Date: Re: here is some problem in structures
- Previous by thread: Re: Short form of __FILE__
- Next by thread: about system call in driver
- Index(es):
Relevant Pages
|