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.