1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>PetscFixFilename</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<A NAME="PetscFixFilename"><H1>PetscFixFilename</H1></A>
Fixes a file name so that it is correct for both Unix and Windows by using the correct / or \ to seperate directories.
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
int PetscFixFilename(const char filein[],char fileout[])
</PRE>
Not Collective
<P>
<H3><FONT COLOR="#CC3333">Input Parameter</FONT></H3>
<DT><B>filein </B> -name of file to be fixed
<br>
<P>
<H3><FONT COLOR="#CC3333">Output Parameter</FONT></H3>
<DT><B>fileout </B> -the fixed name. Should long enough to hold the filename.
<br>
<P>
<P>
<H3><FONT COLOR="#CC3333">Notes</FONT></H3>
Call <A HREF="../Sys/PetscFixFilename.html#PetscFixFilename">PetscFixFilename</A>() just before calling fopen().
<P><B><P><B><FONT COLOR="#CC3333">Level:</FONT></B>advanced
<BR><FONT COLOR="#CC3333">Location:</FONT></B><A HREF="../../../src/sys/src/fileio/ghome.c.html#PetscFixFilename">src/sys/src/fileio/ghome.c</A>
<BR><A HREF="./index.html">Index of all Sys routines</A>
<BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
<BR><A HREF="../singleindex.html">Index of all manual pages</A>
</BODY></HTML>
|