![]() |
librnr
1.14.5
RoadNarrows Robotics Common Library 1
|
Example of a librnr "derived" DListVoid doubly-linked lists. More...
#include <stdio.h>#include <string.h>#include "rnr/rnrconfig.h"#include "rnr/new.h"#include "example_dlist.h"Go to the source code of this file.
Functions | |
| static Zoo_T * | NewZooAnimal (const char *sSciName, const char *sPetName) |
| Allocate new zoo addition. More... | |
| int | main (int argc, char *argv[]) |
| Example main. More... | |
Variables | |
| const char * | AnimalCatalog [][2] |
| Animal catalog of the world. More... | |
| static char * | FlatEarthZooDeal [][2] |
| Zoo we will "buy". More... | |
| static | Zid = 0 |
| zoo id | |
Example of a librnr "derived" DListVoid doubly-linked lists.
Definition in file example_dlist.c.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Example main.
| argc | Command-line argument count. |
| argv | Command-line argument list. |
Definition at line 129 of file example_dlist.c.
References DListZooDataCmp(), DListZooDataDelete(), DListZooDataPrint(), FlatEarthZooDeal, Zoo_T::m_sPetName, NewZooAnimal(), and NULL.
|
static |
Allocate new zoo addition.
| sSciName | Scientific name. |
| sPetName | Pet name. |
Definition at line 90 of file example_dlist.c.
References AnimalCatalog, Zoo_T::m_nZid, Zoo_T::m_sComName, Zoo_T::m_sPetName, Zoo_T::m_sSciName, NEW, new_strdup(), NULL, and Zid.
Referenced by main().
| const char* AnimalCatalog[][2] |
Animal catalog of the world.
Definition at line 55 of file example_dlist.c.
Referenced by NewZooAnimal().
|
static |
Zoo we will "buy".
Definition at line 70 of file example_dlist.c.
Referenced by main().