Changeset 12880


Ignore:
Timestamp:
2006-09-28T10:27:30+12:00 (18 years ago)
Author:
kjdon
Message:

Accent folding patch thanks to Juan Grigera. Added a make_suffix function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/mgpp/text/mg_files.cpp

    r8691 r12880  
    9393}
    9494
     95
     96/* [JFG - Mar 06: Accent folding patch] */
     97/* This generates a suffixe for a file name. It places the name in the
     98   buffer specified or if that is NULL, it uses a static buffer.
     99   Please do not specify buffers under 512 or the data to be written. */
     100char *
     101make_suffix (const char *suffix_format, const char suffix_arg, char *buffer)
     102{
     103  static char suffix[512];
     104  if (!buffer)
     105    buffer = suffix;
     106  sprintf (buffer, suffix_format, suffix_arg);
     107  return buffer;
     108}
     109 
    95110
    96111
Note: See TracChangeset for help on using the changeset viewer.