URLENCODE

Section: MidWay Programmer's Manual (3C)
Updated: DATE
Index Return to Main Contents
 

NAME

urlmapencode, urlmapnencode,urlmapdecode - Encode and decode of an URL encoded field list  

SYNOPSIS

#include <urlencode.h>

int urlmapnset (urlmap * map, char * key, void * value, int len);
int urlmapset (urlmap * map, char * key, char * value);
int urlmapget (urlmap * map, char * key);

 

DESCRIPTION

The urlmapget() returns the index into the map array where the key is equal to key.

The set functions set a value to a given key. The key must already exists. urlmapset() takes the key and value as NULL terminated strings, while urlmapnset() takes a pointer to len bytes, that may contain ' ';

 

RETURN VALUES

On success, the index into the map. -1 and errno of failure.

 

ERRORS

ENOENT
There are no entry in map with key.
EINVAL
Either maporkey are NULL.

 

WARNINGS

 

EXAMPLES

 

BUGS

 

NOTES

The urlencode library is not within the MidWay namespace, nor is it neccessary to include the library when compiling a MidWay client or server. It is provided since many of these functions are used in the MidWay libraries, and are used extensivly within MidWay to implement the SRB protocol.

 

SEE ALSO

urlmapdecode(3C), urlmapencode(3C), urlmapnencode(3C), urlmapfree(3C), urlmapnadd(3C), urlmapadd(3C), urlmapaddi(3C), urlmapdel(3C)

 

STANDARDS

NONE


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
ERRORS
WARNINGS
EXAMPLES
BUGS
NOTES
SEE ALSO
STANDARDS

This document was created by man2html, using the manual pages.
Time: 11:18:51 GMT, October 24, 2000