| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 1.91

 

srcdoc W (sflmail.c 421): function getfilename not known

#include "(unknown)"
static char *getfilename (
   char *strFullPath)

Synopsis

Get's the name from the full path of a file. This function is used by smtp_send_mail.

Source Code - (sflmail.c)

{
   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;
}

| << | < | > | >> iMatix Copyright © 1996-98 iMatix