Jabber WindowGram Client (JWGC)

Introduction Screenshots Installation Downloads
Documentation Browse Source Resources Project Site

Stable Version
-none-

Latest Version
beta5



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

string_dictionary_aux.c File Reference

#include "mit-copyright.h"
#include "string_dictionary.h"

Go to the source code of this file.

Functions

void string__dictionary_Set (string_dictionary d, string key, string value)
char * string_dictionary_Fetch (string_dictionary d, string key)
void string_dictionary_SafeDestroy (string_dictionary d)


Function Documentation

void string__dictionary_Set string_dictionary  d,
string  key,
string  value
 

Definition at line 38 of file string_dictionary_aux.c.

References string_Copy, string_dictionary, string_dictionary_binding, string_dictionary_Define(), and _string_dictionary_binding::value.

00042 {
00043         string_dictionary_binding *binding;
00044         int already_exists;
00045 
00046         binding = string_dictionary_Define(d, key, &already_exists);
00047         if (already_exists)
00048                 free(binding->value);
00049 
00050         binding->value = string_Copy(value);
00051 }

char* string_dictionary_Fetch string_dictionary  d,
string  key
 

Definition at line 63 of file string_dictionary_aux.c.

References string_dictionary, string_dictionary_binding, string_dictionary_Lookup(), and _string_dictionary_binding::value.

00066 {
00067         string_dictionary_binding *binding;
00068 
00069         binding = string_dictionary_Lookup(d, key);
00070         if (!binding)
00071                 return (0);
00072 
00073         return (binding->value);
00074 }

void string_dictionary_SafeDestroy string_dictionary  d  ) 
 

Definition at line 91 of file string_dictionary_aux.c.

References string_dictionary, string_dictionary_Destroy(), and string_dictionary_Enumerate().

00093 {
00094         string_dictionary_Enumerate(d, free_value_of_binding);
00095         string_dictionary_Destroy(d);
00096 }



Last updated at Tue Dec 18 21:07:42 PST 2007. This site and project hosted by...SourceForge.net Logo

Source Perspective by Fisheye