RE: macro to print filename

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



man 3 basename

Regards,
Libin 

> -----Original Message-----
> From: linux-c-programming-owner@xxxxxxxxxxxxxxx
> [mailto:linux-c-programming-owner@xxxxxxxxxxxxxxx] On Behalf Of ratheesh kannoth
> Sent: Thursday, June 02, 2011 12:08 AM
> To: linux-c-programming@xxxxxxxxxxxxxxx
> Subject: macro to print filename
> 
> __FILE__ macro prints relative path name of the file. I need only
> filename. How to extract this ?
> 
> I dont want to use any string library - since it includes more
> Processing and needs to store the character array in executable. IS
> there any method at preprocessing level to do this .
> --
> To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux