1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META http-equiv="Content-Style-Type" content="text/css"> 6<TITLE>ARCConvertPathToEntrynum</TITLE> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8</HEAD> 9<BODY> 10<H1>ARCConvertPathToEntrynum</H1> 11 12<H2>C Specification</H2> 13<DL> 14 <DD> 15<PRE><CODE>#include <revolution/arc.h></CODE></PRE> 16<DD><CODE>s32 ARCConvertPathToEntrynum(ARCHandle* <EM>handle</EM>, const char* <EM>pathPtr</EM>);</CODE> 17</DL> 18<H2>Description</H2> 19<P><CODE>ARCConvertPathToEntrynum</CODE> converts file paths in the archive into an entry number. Note that the <CODE>ARCHandle</CODE> structure must be initialized before attempting conversion.</P> 20<H2>Arguments</H2> 21<TABLE border="1" width="100%"> 22 <TBODY> 23 <TR> 24<TD><EM><STRONG><CODE>handle</CODE></STRONG></EM></TD> 25<TD>Pointer to the file's <CODE>ARCHandle</CODE> structure</TD> 26 </TR> 27 <TR> 28<TD><EM><STRONG><CODE>pathPtr</CODE></STRONG></EM></TD> 29<TD>The file name inside the archive file</TD> 30 </TR> 31 </TBODY> 32</TABLE> 33<H2>Return Values</H2> 34<P>Returns -1 if the file name could not be found in the archive. Returns the entry number (0 or a positive number) if conversion succeeded.</P> 35<H2>See Also</H2> 36<P><CODE><A href="ARCFastOpen.html">ARCFastOpen</A>, <A href="ARCInitHandle.html">ARCInitHandle</A></CODE></P> 37<H2>Revision History</H2> 38<P>05/15/2006 Initial version.</P> 39<hr> 40<P>CONFIDENTIAL</p> 41</BODY> 42</HTML>