Subj : BAJA Programming 101.2
To   : PistolGrip
From : Digital Man
Date : Sun Oct 21 2001 05:33 pm

RE: BAJA Programming 101.2
BY: PistolGrip to All on Sun Oct 21 2001 09:59 pm

> ############################################################################
> ### Two things to notice about this next section:
> ### 1.)  When using Synchronet Command Line Specifiers (ie. "%n") with the
> ###      BAJA sprintf command, you must use two (2) percent signs (%).  Refe
> ###      to the BAJA docs for more information on using the sprintf function
> ###      and certain characters.
> ### 2.) The double forward slashes "/" in the path.  When you specify paths
> ###     within a sprintf statement you must use two (2) slashes, either forw

Are you sure about this double forward-slash thing? You have to use
double-backslash to represent a single backslash character (because the C
programming language uses backslash a special 'escape' character - e.g. '\r'
indicates carriage return), but the same is not true of the forward slash
character.

For example, print "\\test\\" would display "\test\"
            print "//test//" would display "//test//"

Just another incentive to use forward slashes instead of backslashes in
pathnames. :-)

-Rob

---
� Synchronet � Vertrauen � Home of Synchronet � telnet://vert.synchro.net