- Timestamp:
- 2006-12-24T19:35:13Z (18 years ago)
- Branches:
- master
- Children:
- 7bee5af
- Parents:
- 9225e08
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
help.c
r9225e08 rc227706 31 31 #define BUFSIZE 1100 32 32 33 help_t *help_init( help_t **help )33 help_t *help_init( help_t **help, const char *helpfile ) 34 34 { 35 35 int i, buflen = 0; … … 41 41 *help = h = g_new0 ( help_t, 1 ); 42 42 43 h->fd = open( global.helpfile, O_RDONLY43 h->fd = open( helpfile, O_RDONLY 44 44 #ifdef _WIN32 45 45 | O_BINARY … … 109 109 help_t *h; 110 110 111 h=*help; 112 113 while( h ) 111 for( h = *help; h; h = h->next ) 114 112 { 115 if( g_strcasecmp( h->string, string ) == 0 ) break; 116 h = h->next; 113 if( h->string != NULL && 114 g_strcasecmp( h->string, string ) == 0 ) 115 break; 117 116 } 118 117 if( h && h->length > 0 )
Note: See TracChangeset
for help on using the changeset viewer.