This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| void | descriptions_open (char *filename) |
| char * | descriptions_getDescription (uint4 descriptionLocation, uint4 descriptionLength) |
| void | descriptions_close () |
| void descriptions_close | ( | ) |
Definition at line 54 of file descriptions.c.
References descriptions_file.
Referenced by main(), and readdb_close().
00055 { 00056 fclose(descriptions_file); 00057 }
Here is the caller graph for this function:

| char* descriptions_getDescription | ( | uint4 | descriptionLocation, | |
| uint4 | descriptionLength | |||
| ) |
Definition at line 31 of file descriptions.c.
References descriptions_file, descriptions_filename, and global_malloc().
Referenced by alignments_getFinalAlignmentDescriptions(), cluster_writeClusters(), main(), and rsdb_writeClusters().
00032 { 00033 char* description; 00034 00035 // Declare memory for the description 00036 description = (char*)global_malloc(sizeof(char) * (descriptionLength + 1)); 00037 00038 fseek(descriptions_file, descriptionLocation, SEEK_SET); 00039 00040 // Read the description into the new buffer 00041 if (fgets(description, descriptionLength + 1, descriptions_file) == NULL) 00042 { 00043 fprintf(stderr, "%s\n", strerror(errno)); 00044 fprintf(stderr, "Error reading from file %s\n", descriptions_filename); 00045 exit(-1); 00046 } 00047 00048 // printf("(%d,%d)%s\n", descriptionLocation, descriptionLength, description); 00049 00050 return description; 00051 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void descriptions_open | ( | char * | filename | ) |
Definition at line 16 of file descriptions.c.
References descriptions_file, and descriptions_filename.
Referenced by main(), and readdb_open().
00017 { 00018 descriptions_file = fopen(filename, "r"); 00019 00020 if (descriptions_file == NULL) 00021 { 00022 fprintf(stderr, "%s\n", strerror(errno)); 00023 fprintf(stderr, "Error opening file %s for reading\n", filename); 00024 exit(-1); 00025 } 00026 00027 descriptions_filename = filename; 00028 }
Here is the caller graph for this function:

1.5.2