Kannel: Open Source WAP and SMS gateway  $Revision: 5037 $
test_octstr_immutables.c File Reference
#include <stdio.h>
#include "gwlib/gwlib.h"

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.

66 {
67  Octstr *os;
68 
69  gwlib_init();
70 
71  if (optind >= argc) {
72  os = octstr_imm("foo");
73  } else {
74  os = octstr_imm(argv[optind]);
75  }
76 
77  /*
78  * Note: don't destroy this, check that the log file has no
79  * memory leaks.
80  */
81 
82  octstr_dump(os, 0);
83 
85 
86  return 0;
87 }
int optind
Definition: attgetopt.c:80
Octstr * octstr_imm(const char *cstr)
Definition: octstr.c:281
#define octstr_dump(ostr, level,...)
Definition: octstr.h:564
Definition: octstr.c:118
void gwlib_shutdown(void)
Definition: gwlib.c:94
void gwlib_init(void)
Definition: gwlib.c:78
See file LICENSE for details about the license agreement for using, modifying, copying or deriving work from this software.