FANDOM


#include <stdio.h>
#include <string.h>

struct tConstEntry
{
    long            fValue;
    char            fName[64];
    tConstEntry*    fNext;

}; // struct tConstEntry

void main( void )
{
    tConstEntry*    head = NULL;
    tConstEntry*    node;

    // New entry
    node = new tConstEntry;
    node->fValue = 34;
    strcpy( node->fName, "cSave" );
    node->fNext = head;
    head = node;

    // New entry
    node = new tConstEntry;
    node->fValue = 19;
    strcpy( node->fName, "Kenny" );
    node->fNext = head;
    head = node;

    // New entry
    node = new tConstEntry;
    node->fValue = 983;
    strcpy( node->fName, "Hank" );
    node->fNext = head;
    head = node;

    // Dump
    node = head;
    while ( node )
        {
        printf( "%s - %d\n", (const char*) node->fName, node->fValue );
        node = node->fNext;
        }
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.