File: fformat.h

package info (click to toggle)
sidplay 1.36.28-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,192 kB
  • ctags: 1,674
  • sloc: cpp: 12,514; sh: 1,716; makefile: 223
file content (44 lines) | stat: -rw-r--r-- 988 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// /home/ms/source/sidplay/libsidplay/include/RCS/fformat.h,v
//

#ifndef FFORMAT_H
#define FFORMAT_H


#include "compconf.h"
#include "mytypes.h"

#if defined(HAVE_STRSTREA_H)
  #include <strstrea.h>
#else
  #include <strstream.h>
#endif

#if defined(HAVE_STRCASECMP)
  #undef stricmp
  #define stricmp strcasecmp
#endif

#if defined(HAVE_STRNCASECMP)
  #undef strnicmp
  #define strnicmp strncasecmp
#endif

// Wrapper for ``strnicmp'' without third argument.
inline int myStrNcaseCmp(const char* s1, const char* s2)
{
    return strnicmp(s1,s2,strlen(s2));
}

extern char* myStrDup(const char *source);
extern char* fileNameWithoutPath(char* s);
extern char* fileExtOfPath(char* s);
extern udword readHex(istrstream& parseStream);
extern udword readDec(istrstream& parseStream);
extern const char* returnNextLine(const char* pBuffer);
extern void skipToEqu(istrstream& parseStream);
extern void copyStringValueToEOL(const char* pSourceStr, char* pDestStr, int destMaxLen);


#endif