from small one page howto to huge articles all in one place
 

search text in:





Poll
Which filesystem do you use?






poll results

Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

186354

userrating:

average rating: 1.7 (102 votes) (1=very good 6=terrible)


May 25th. 2007:
Words

486

Views

250360

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

137536

userrating:

average rating: 1.4 (42 votes) (1=very good 6=terrible)


April, 26th. 2006:

Druckversion
You are here: manpages





RC_STRLIST

Section: C Library Functions (3)
Updated: SMM
Index Return to Main Contents

BSD mandoc
OpenRC  

NAME

rc_stringlist_add , rc_stringlist_addu , rc_stringlist_delete rc_stringlist_free , rc_stringlist_new , rc_stringlist_sort - RC string list functions  

LIBRARY

Run Command library (librc, -lrc)  

SYNOPSIS

In rc.h Ft RC_STRINGLIST * Fn rc_stringlist_new void Ft RC_STRING * Fn rc_stringlist_add RC_STRINGLIST *list const char *item Ft RC_STRING * Fn rc_stringlist_addu RC_STRINGLIST *list const char *item Ft bool Fn rc_stringlist_delete RC_STRINGLIST const char *item Ft void Fn rc_stringlist_free RC_STRINGLIST *list Ft void Fn rc_stringlist_sort RC_STRINGLIST *list  

DESCRIPTION

These functions provide an easy means of manipulating string lists. They are basically wrappers around TAILQ macros found in queue(3).

Fn rc_stringlist_new creates a new list head to store the list.

Fn rc_stringlist_add adds a malloced copy of Fa item to Fa list . It returns a pointer to the new item on success, or NULL on failure and sets errno accordingly. Fn rc_stringlist_addu only works if Fa list does not already contain Fa item .

Fn rc_stringlist_delete removes and frees Fa item from Fa list , retuning true on success, otherwise false.

Fn rc_stringlist_sort sorts the Fa list according to C locale.

Fn rc_stringlist_free frees each item on Fa list and the Fa list itself.  

SEE ALSO

malloc(3), free(3), queue(3), strcmp(3)  

AUTHORS

An Roy Marples <roy@marples.name>


 

Index

NAME
LIBRARY
SYNOPSIS
DESCRIPTION
SEE ALSO
AUTHORS





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 16.8 ms