#include <windows.h>#include "machine.h"#include "stack-c.h"#include "version.h"#include "scigraphic.h"#include "wgraph.h"#include "wgnuplib.h"#include "Messages.h"#include "Warnings.h"#include "Errors.h"Include dependency graph for FigureToFile.h:

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

Go to the source code of this file.
Defines | |
| #define | MAXSTR 255 |
Functions | |
| void | dos2win32 (char *filename, char *filename1) |
| char * | GetFileExtension (char *filename) |
| #define MAXSTR 255 |
Definition at line 23 of file FigureToFile.h.
| void dos2win32 | ( | char * | filename, | |
| char * | filename1 | |||
| ) |
Definition at line 190 of file FigureToFile.c.
00191 { 00192 #ifdef CVT_PATH_BEG 00193 if (filename[1] == ':') 00194 { 00195 *filename1++ = '/'; 00196 *filename1++ = '/'; 00197 *filename1++ = *filename++; 00198 filename++; 00199 } 00200 #endif 00201 while (*filename != '\0') 00202 { 00203 *filename1++ = *filename++; 00204 if (*(filename1 - 1) == '\\') 00205 *(filename1 - 1) = '/'; 00206 } 00207 *filename1 = '\0'; 00208 }
| char* GetFileExtension | ( | char * | filename | ) |
Definition at line 210 of file FigureToFile.c.
References buffer, MALLOC, MAX_PATH, and NULL.
Referenced by ModifyFilenameExtension().
00211 { 00212 char *StrReturn=NULL; 00213 char ChaineTemp[MAX_PATH]; 00214 char *buffer=NULL; 00215 char *lastdot=NULL; 00216 00217 strcpy(ChaineTemp,filename); 00218 /* Recherche de l'extension du fichier */ 00219 buffer=strtok(ChaineTemp,"."); 00220 while ( buffer = strtok(NULL,".")) 00221 { 00222 lastdot=buffer; 00223 } 00224 00225 if (lastdot) 00226 { 00227 StrReturn = (char *) MALLOC ((strlen(lastdot)+2)*sizeof(char)); 00228 strcpy(StrReturn,"."); 00229 strcat(StrReturn,lastdot); 00230 } 00231 else 00232 { 00233 StrReturn = NULL; 00234 } 00235 return StrReturn; 00236 }
Here is the caller graph for this function:

1.5.1