![]() |
librnr
1.14.5
RoadNarrows Robotics Common Library 1
|
Example of using the librnr URI utilities. More...
#include <stdio.h>#include <string.h>#include <ctype.h>#include <stdarg.h>#include "rnr/rnrconfig.h"#include "rnr/new.h"#include "rnr/uri.h"Go to the source code of this file.
Macros | |
| #define | SAFESTR(s) ((s) != NULL? s: "") |
| Make a safe string. More... | |
Functions | |
| static char * | strip (char *s) |
| Strip leading and trailing white space. More... | |
| int | main (int argc, char *argv[]) |
| Example main. More... | |
Example of using the librnr URI utilities.
Definition in file example_uri.c.
| #define SAFESTR | ( | s | ) | ((s) != NULL? s: "") |
Make a safe string.
| s | String to safe. |
Definition at line 58 of file example_uri.c.
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Example main.
| argc | Command-line argument count. |
| argv | Command-line argument list. |
Definition at line 109 of file example_uri.c.
References uri_struct_t::m_nPortNum, uri_struct_t::m_sHostName, uri_struct_t::m_sPath, uri_struct_t::m_sQuery, uri_struct_t::m_sScheme, uri_struct_t::m_sUserInfo, SAFESTR, strip(), UriDelete(), UriParseNew(), and UriStrNew().
|
static |
Strip leading and trailing white space.
An 0 is insterted to strip the trailing white space.
| [out] | s | String to strip. |
Definition at line 69 of file example_uri.c.
Referenced by main().