GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
critbit0_insert(3) FreeBSD Library Functions Manual critbit0_insert(3)

critbit0_insert - insert a string into a critbit tree

#include <libowfat/critbit.h>

critbit0_tree cb = { 0 };

int critbit0_insert(critbit0_tree* cb,const char* str);

critbit0_insert attempts to insert a string into a critbit0 tree. For this it does not insert a copy of the pointer but makes a copy of the whole string. If str is already in cb, critbit0_insert returns 1. If str is not in cb, it is inserted and critbit0_insert returns 2. If there is a memory allocation failure on the way, critbit0_insert leaves cb alone and returns 0.

2 if the key was inserted, 1 if it was already in cb, 0 on memory allocation failure.

critbit0_contains(3)

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.