[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] char points and char array
From: |
龟腚 |
Subject: |
[Tinycc-devel] char points and char array |
Date: |
Thu, 24 Dec 2009 09:58:50 +0800 |
hi, i use tinyCC because it claim it as a ansi C compilerbut i found a act which not abey the ansi C rules
like
char *s='hello,world';
*(s+2) = '\0';
which in ansi C are not allowed cause *s is consider as read only
and i compile the code with gcc it show me segment error while running
but tcc accept this act
- [Tinycc-devel] char points and char array,
龟腚 <=