Changeset 895 for trunk/dll/strips.c


Ignore:
Timestamp:
Dec 30, 2007, 12:46:11 AM (18 years ago)
Author:
Gregg Young
Message:

Added remove_first_occurence_of_character to strip.c; Refined mailrun to use <mailto:> syntax;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/strips.c

    r793 r895  
    1212  26 Jul 06 SHL Add chop_at_crnl
    1313  20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat
     14  29 Dec 07 GKY Add remove_first_occurence_of_character
    1415
    1516***********************************************************************/
     
    7172}
    7273
     74VOID remove_first_occurence_of_character(char *pszRemoveChar, char *pszSrc)
     75{
     76  PSZ pszStrLocation;
     77
     78  pszStrLocation = strchr(pszSrc, *pszRemoveChar);
     79  if (pszStrLocation)
     80    memmove(pszStrLocation, pszStrLocation + 1, strlen(pszStrLocation) + 1);
     81}
     82
    7383#pragma alloc_text(MISC8,chop_at_crnl,convert_nl_to_nul,strip_trail_char,strip_lead_char)
Note: See TracChangeset for help on using the changeset viewer.