Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

test_octstr_immutables.c File Reference

#include <stdio.h>
#include "gwlib/gwlib.h"

Include dependency graph for test_octstr_immutables.c:

Include dependency graph

Go to the source code of this file.

Functions

int main (int argc, char **argv)


Function Documentation

int main int  argc,
char **  argv
 

Definition at line 65 of file test_octstr_immutables.c.

References gwlib_init(), gwlib_shutdown(), octstr_dump, octstr_imm(), and optind.

00066 {
00067     Octstr *os;
00068 
00069     gwlib_init();
00070     
00071     if (optind >= argc) {
00072         os = octstr_imm("foo");
00073     } else {
00074         os = octstr_imm(argv[optind]);
00075     }
00076 
00077     /* 
00078      * Note: don't destroy this, check that the log file has no
00079      * memory leaks.
00080      */
00081     
00082     octstr_dump(os, 0);
00083     
00084     gwlib_shutdown();
00085 
00086     return 0;
00087 }

Here is the call graph for this function:

See file LICENSE for details about the license agreement for using, modifying, copying or deriving work from this software.