src/mess/tools/messdocs/messdocs.c
| r8674 | r8675 | |
| 8 | 8 | |
| 9 | 9 | #include "pool.h" |
| 10 | 10 | #include "sys/stat.h" |
| 11 | | #include "utils.h" |
| 12 | 11 | #include "osdcore.h" |
| 13 | 12 | #include "strconv.h" |
| 14 | 13 | #include "winutf8.h" |
| r8674 | r8675 | |
| 37 | 36 | static void *expat_malloc(size_t size); |
| 38 | 37 | static void *expat_realloc(void *ptr, size_t size); |
| 39 | 38 | static void expat_free(void *ptr); |
| 39 | static void rtrim(char *buf); |
| 40 | 40 | |
| 41 | |
| 41 | 42 | //============================================================ |
| 42 | 43 | // win_error_to_mame_file_error |
| 43 | 44 | //============================================================ |
| r8674 | r8675 | |
| 777 | 778 | |
| 778 | 779 | |
| 779 | 780 | |
| 781 | static void rtrim(char *buf) |
| 782 | { |
| 783 | size_t buflen; |
| 784 | char *s; |
| 785 | |
| 786 | buflen = strlen(buf); |
| 787 | if (buflen) |
| 788 | { |
| 789 | for (s = &buf[buflen-1]; s >= buf && (*s >= '\0') && isspace(*s); s--) |
| 790 | *s = '\0'; |
| 791 | } |
| 792 | } |
| 793 | |
| 794 | |
| 795 | |
| 780 | 796 | /*************************************************************************** |
| 781 | 797 | EXPAT INTERFACES |
| 782 | 798 | ***************************************************************************/ |