| iMatix home page | << | < | > | >> |
![]() Version 1.91 |
#include "(unknown)" static char *getfilename ( char *strFullPath)
Get's the name from the full path of a file. This function is used by smtp_send_mail.
{ int iLen; char *strTmp; iLen = strlen (strFullPath); strTmp = (strFullPath + iLen); while (1) { if (*strTmp == '\\' || *strTmp == '/' || !iLen) break; strTmp--; iLen--; } if (*strTmp == '\\' || *strTmp == '/') strTmp++; return strTmp; }
| << | < | > | >> |
![]() |