OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
StdResStr2.cpp File Reference
#include "C4Include.h"
Include dependency graph for StdResStr2.cpp:

Go to the source code of this file.

Functions

const char * LoadResStrNoAmp (const char *id)
 

Variables

const int ResStrMaxLen = 4096
 

Function Documentation

const char* LoadResStrNoAmp ( const char *  id)

Definition at line 23 of file StdResStr2.cpp.

References LoadResStr().

Referenced by C4StartupOptionsDlg::C4StartupOptionsDlg(), and C4StartupScenSelDlg::DoOK().

24 {
25  const char * str = LoadResStr(id);
26  char * cpd = strResult;
27  for (const char * cps = str; *cps; ++cps, ++cpd)
28  {
29  if (*cps == '&')
30  --cpd;
31  else
32  *cpd = *cps;
33  }
34  *cpd = 0;
35  return strResult;
36 }
const char * LoadResStr(const char *id)
Definition: C4Language.h:83

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const int ResStrMaxLen = 4096

Definition at line 21 of file StdResStr2.cpp.