ftp.nice.ch/Attic/openStep/developer/bundles/GDBbundle.1.0.s.tgz#/GDBbundle-1.0.s/debug/gdb/gdb/tests/dynArray.c

This is dynArray.c in view mode; [Download] [Up]

int foo()
{
    return 20;
}

typedef char CharArray[1];

void main()
{
    int i = foo();
    char dynBuf[i];
    char staticBuf[20];
    char *bufPtr;
    CharArray *charPtr;
    
    strcpy(dynBuf, "hello");
    printf("%s\n", dynBuf);
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.