1
0
mirror of https://github.com/deadw00d/AROS.git synced 2025-11-22 11:49:05 +00:00
Files
AROS-v0/compiler/purify/test3.c
Matthias Rustler 2dd7a55cbf compiler: detabbed
2021-05-02 14:18:58 +02:00

35 lines
547 B
C

/*
Copyright (C) 1995-2014, The AROS Development Team. All rights reserved.
*/
#include <stdio.h>
int main (int argc, char ** argv)
{
char * str;
int t;
if (argc == 1)
{
printf ("Too few arguments\n");
return 10;
}
str = "Hello world.\n";
printf ("%s", str);
printf ("&argc=%p\n", &argc);
printf ("argv=%p\n", argv);
for (t=0; t<argc; t++)
printf ("Arg %d: %s\n", t, argv[t]);
argc = 1;
*argv = "test";
argv[1][1] = 'x'; /* Illegal Write */
return 0;
}