Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsINIParser.h File Reference
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include <sys/stat.h>
#include <locale.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

unsigned long GetPrivateProfileString (const char *szAppName, const char *szKeyName, const char *szDefault, char *szReturnedString, int nSize, const char *szFileName)
unsigned long WritePrivateProfileString (const char *szAppName, const char *szKeyName, const char *szValue, const char *szFileName)

Function Documentation

unsigned long GetPrivateProfileString ( const char *  szAppName,
const char *  szKeyName,
const char *  szDefault,
char *  szReturnedString,
int  nSize,
const char *  szFileName 
)

Definition at line 46 of file nsINIParser.cpp.

{
   nsINIParser parser((char*)szFileName);
   if (parser.GetString((char*)szAppName, (char*)szKeyName, szReturnedString, &nSize) != nsINIParser::OK) {
      if (szDefault) {
         strcpy(szReturnedString, szDefault);
      }
   }
   return strlen(szReturnedString);
}

Here is the call graph for this function:

unsigned long WritePrivateProfileString ( const char *  szAppName,
const char *  szKeyName,
const char *  szValue,
const char *  szFileName 
)

Definition at line 62 of file nsINIParser.cpp.

{
   nsINIParser parser((char*)szFileName);
   if (parser.WriteString((char*)szAppName, (char*)szKeyName, (char*)szValue) != nsINIParser::OK) {
      return 0;
   }
   return 1;
}

Here is the caller graph for this function: