O nás     Inzerce     KontaktSpolehlivé informace o IT již od roku 2011
Hledat
Nepřehlédněte: Usnadní vám práci: Pozoruhodné IT produkty pro rok 2024
Správa dokumentů
Digitální transformace
Informační systémy
Hlavní rubriky: Informační systémy, Mobilní technologie, Datová centra, Sítě, IT bezpečnost, Software, Hardware, Zkušenosti a názory, Speciály

Pozoruhodné IT produkty 2024
E-knihy o IT zdarma
Manuál Linux
[Linux manuál]

insque, remque: vložit / odebrat položku z fronty

Originální popis anglicky: insque, remque - insert/remove an item from a queue

Návod, kniha: Linux Programmer's Manual

STRUČNĚ

#include <search.h>
 
void insque(void *elem, void *prev); void remque(void *elem);

POPIS / INSTRUKCE

insque() and remque() are functions for manipulating doubly-linked lists. Each element in the list is a structure of which the first two structure elements are a forward and a backward pointer.
 
insque() inserts the element pointed to by elem immediately after the element pointed to by prev, which must not be NULL.
 
remque() removes the element pointed to by elem from the doubly-linked list.

ODPOVÍDAJÍCÍ

POSIX 1003.1-2001

HISTORICAL NOTES

Traditionally (e.g. SunOS, Linux libc 4,5) the parameters of these functions were of type struct qelem *, where the struct is defined as
 
struct qelem {
    struct    qelem *q_forw;
    struct    qelem *q_back;
    char      q_data[1];
};
 
This is still what you will get if _GNU_SOURCE is defined before including <search.h>.
 
The location of the prototypes for these functions differs among several versions of UNIX. The above is the POSIX version. Some systems place them in <string.h>. Linux libc4,5 placed them in <stdlib.h>.
2003-08-11
©2011-2024 BusinessIT.cz, ISSN 1805-0522 | Názvy použité v textech mohou být ochrannými známkami příslušných vlastníků.
Provozovatel: Bispiral, s.r.o., kontakt: BusinessIT(at)Bispiral.com | Inzerce: Best Online Media, s.r.o., zuzana@online-media.cz
O vydavateli | Pravidla webu BusinessIT.cz a ochrana soukromí | Používáme účetní program Money S3 | pg(9159)