Ignore:
Timestamp:
04/05/08 23:41:11 (17 years ago)
Author:
r2d
Message:

added commentary to added iniparser functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/mpcchap/iniparser.h

    r384 r393  
    8282
    8383
    84 
     84/*-------------------------------------------------------------------------*/
     85/**
     86@brief    Get number of keys for section n in a dictionary.
     87@param    d   Dictionary to examine
     88@param    n   Section number (from 0 to nsec-1).
     89@return   Number of keys in section
     90
     91  This function locates the n-th section in a dictionary and returns
     92  the number of keys in this section.
     93
     94  This function returns -1 in case of error.
     95 */
     96/*--------------------------------------------------------------------------*/
    8597int iniparser_getnkey(dictionary * d, int nsec);
     98
     99
     100/*-------------------------------------------------------------------------*/
     101/**
     102@brief    Get key and string for key nkey in section nsec in a dictionary.
     103@param    d   Dictionary to examine
     104@param    nsec   Section number.
     105@param    nkey   Key number.
     106@param    string   Pointer where the string will be returned.
     107@return   Pointer to char string
     108
     109  This function locates the nkey-th key in the nsec-th section in a dictionary
     110  and returns the key name and the key string as a pointer to strings
     111  statically allocated inside the dictionary.
     112  Do not free or modify the returned strings!
     113
     114  This function returns NULL in case of error.
     115 */
     116/*--------------------------------------------------------------------------*/
    86117char * iniparser_getkeyname(dictionary * d, int nsec, int nkey, char ** string);
    87118
Note: See TracChangeset for help on using the changeset viewer.