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

ks_combination.c File Reference

libkarmaclient's combination type. More...

#include "ks_config.h"
#include "ks_combination.h"
#include "ks_string.h"
#include "ks_number.h"
#include <stdlib.h>

Go to the source code of this file.

Functions

long ks_combination_score (ks_combination_t *c)
const char * ks_combination_data (ks_combination_t *c)


Detailed Description

libkarmaclient's combination type.

Definition in file ks_combination.c.


Function Documentation

const char* ks_combination_data ks_combination_t c  ) 
 

Get the data for the combination type ks_combination_t (c).

Parameters:
c A pointer to a ks_combination_t.
Returns:
NULL when the combination has no data, or a NUL terminated string containing the data.

Definition at line 61 of file ks_combination.c.

References ks_assoc_get(), KS_CAST, and ks_string_get().

long ks_combination_score ks_combination_t c  ) 
 

Get the score for the combination type ks_combination_t (c).

Parameters:
c A pointer to a ks_combination_t.
Returns:
The score for c, or 0L if it does not have one.

Definition at line 43 of file ks_combination.c.

References ks_assoc_get(), KS_CAST, and ks_number_get().


Generated on Tue Aug 7 21:11:31 2007 for libkarmaclient by  doxygen 1.4.4