Changeset 2404c3a for functions.c
- Timestamp:
- Oct 3, 2003, 7:34:01 PM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- f933403
- Parents:
- 87c6ef1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
rf1e629d r2404c3a 3159 3159 } 3160 3160 3161 void owl_function_execstartup(void) 3161 /* Execute owl commands from the given filename. If the filename 3162 * is NULL, use the default owl startup commands file. 3163 */ 3164 void owl_function_source(char *filename) 3162 3165 { 3163 3166 FILE *file; 3164 char *filename;3165 3167 char buff[LINE]; 3166 3168 3167 filename=owl_sprintf("%s/%s", owl_global_get_homedir(&g), OWL_STARTUP_FILE); 3168 file=fopen(filename, "r"); 3169 owl_free(filename); 3169 if (!filename) { 3170 filename=owl_sprintf("%s/%s", owl_global_get_homedir(&g), OWL_STARTUP_FILE); 3171 file=fopen(filename, "r"); 3172 owl_free(filename); 3173 } else { 3174 file=fopen(filename, "r"); 3175 } 3170 3176 if (!file) { 3171 3177 /* just fail silently if it doesn't exist */
Note: See TracChangeset
for help on using the changeset viewer.