Util_Sh_Escape; Util_Snprintf - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

util_sh_escape

The
util_sh_escape
in front of any shell-special characters, returning the resultant string. Use this
function to ensure that strings from clients won't cause a shell to do anything
unexpected.
The shell-special characters are the space plus the following characters:
&;''"|*?~<>^()[]{}$\#!
Syntax
char *util_sh_escape(char *s);
Returns
A newly allocated string
Parameters
is the string to be parsed.
char *s
See also
util_uri_escape

util_snprintf

The
util_snprintf
into a specified buffer using the
checking. It returns the number of characters in the formatted buffer.
For more information, see the documentation on the
run-time library of your compiler.
Syntax
int util_snprintf(char *s, int n, char *fmt, ...);
Returns
The number of characters formatted into the buffer.
Parameters
is the buffer to receive the formatted string.
char *s
is the maximum number of bytes allowed to be copied.
int n
is the format string. The function handles only
char *fmt
does not handle any width or precision strings.
represents a sequence of parameters for the
...
function parses a specified string and places a backslash (
function formats a specified string, using a specified format,
-style syntax and performs bounds
printf
NSAPI Functions (in Alphabetical Order)
function for the
printf
and
%d
%s
function.
printf
Chapter 5
NSAPI Function Reference
)
\
strings; it
197

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents