|
From: | Jean-Marc Lasgouttes |
Subject: | Re: [Xforms-cvs] xforms/fdesign fd_forms.c fd_main.c fd_main.h f... |
Date: | Thu, 27 Nov 2003 16:50:26 -0000 |
User-agent: | Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (berkeley-unix) |
>>>>> "Angus" == Angus Leeming <address@hidden> writes: Angus> Log message: Give fdesign a -dir <destdir> option. I see you've been busy... +static char const * +filename_only(char const * filename) +{ + char const * ptr = filename + strlen(filename) - 1; + for (; ptr >= filename; --ptr) { + if (*ptr == '/') + return ptr+1; + } + return ptr; +} + Can't you use strrchr() here? What happens with the external convertors? You should also document the new switch in fdesign man page. JMarc
[Prev in Thread] | Current Thread | [Next in Thread] |