|
|
Up |
|
|
  |
Author: mainargvmainargv
Date: Feb 26, 2007 13:03
hi
what's consensus or standard on what should "while(1){}" do? loop
forever or do nothing? thanks
--
comp.lang.c.moderated - moderation address: clcm@ plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
|
| |
|
| |
no comments
|
|
  |
Author: kevincw01kevincw01
Date: Feb 25, 2007 01:14
My professor mentioned using automatics in a C program and I've never
heard of them. Searching google came up with nothing (besides
automatic cars). What are they?
Thanks, -Kevin
--
comp.lang.c.moderated - moderation address: clcm@ plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
|
| |
|
| |
7 Comments |
|
  |
Author: Ira BaxterIra Baxter
Date: Feb 25, 2007 01:14
"JT" gmail.com> wrote in message
news:clcm-20070218-0003@plethora.net...
> Hi! I'm writing a simple static analysis tool for C.
>
> Currently I'm using CIL ( http://hal.cs.berkeley.edu/cil/)
> as my parser frontend. But it has been suggested to me
> that another tool called "LUM" (spelling?) is better
> for my purposes.
>
> But my google search came up empty.
> Has any one heard of LUM?
|
| Show full article (0.80Kb) |
|
1 Comment |
|
  |
Author: David GivenDavid Given
Date: Feb 25, 2007 01:14
I'm trying to write a C source transformer, that will read in ANSI C source
code, mutate it in various bizarre ways, and then write it out again.
Unfortunately, C is notoriously hard to parse due to context-sensitive tokens.
Does anyone know where I can find a simple-as-possible toolkit that will
construct a parse tree and emit it again? Ideally I need something actually
*in* C, which lets out cil and the antlr-based grammar. I have found ctree,
but it's not really open source and it's a bit cryptic.
Does anyone know of anything else I should look at?
--
┌── dg@cowlark.com ─── http://www.cowlark.com ───────────────────
│
│ "The first 90%% of the code takes the first 90%% of the time. The other 10%%
│ takes the other 90%% of the time."
--- Anonymous
--
comp.lang.c.moderated - moderation address: clcm@ plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
|
| |
|
3 Comments |
|
  |
Author: Hans-Bernhard BrökerHans-Bernhard Bröker
Date: Feb 25, 2007 01:13
Douglas A. Gwyn wrote:
> Struct assignment and auto aggregate initialization were not supported
> in many old C compilers.
"Old" as in "of legal drinking age by now" (in quite a lot of
countries), that is.
--
comp.lang.c.moderated - moderation address: clcm@ plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
|
| |
|
no comments
|
|
  |
Author: nandunandu
Date: Feb 25, 2007 01:13
On Feb 19, 8:27 am, "Vijay" rediffmail.com> wrote:
> Hello everybody, I want to know that whenever we write a scanf
> function to input an integer, float or any other datatype (Excluding
> string) then we use ampersand symbol just before variable name, but
> when we use to input a string value then we do not need to use
> ampersand symbol before variable name why?
> --
> comp.lang.c.moderated - moderation address: c...@ plethora.net -- you must
> have an appropriate newsgroups line in your header for your mail to be seen,
> or the newsgroup name in square brackets in the subject line. Sorry.
see whenever you are reading a string the name of the string itself
gives the address of the string variable and is the reason for not
using "ampersand" before string
--
comp.lang.c.moderated - moderation address: clcm@ plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
|
| |
|
no comments
|
|
  |
Author: newbiejakenewbiejake
Date: Feb 21, 2007 23:50
I need a code that at first how many courses did one take. then if you
answered for example "5" it will ask you 5 times of the course name,
the number of units, and the final grade for that unit. then after
that the output will show a table-like output which shows everything
you entered and then the Average is also included. but the average
depends on the number of units of that course. some are 3 units and
some are 5 units... i'm not sure if im missing something but any kind
of help will do...
--
comp.lang.c.moderated - moderation address: clcm@ plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
|
| |
|
2 Comments |
|
  |
Author: Michael TiomkinMichael Tiomkin
Date: Feb 21, 2007 23:50
On Feb 19, 5:27 am, "JT" gmail.com> wrote:
> Hi! I'm writing a simple static analysis tool for C.
>
> Currently I'm using CIL ( http://hal.cs.berkeley.edu/cil/)
> as my parser frontend. But it has been suggested to me
> that another tool called "LUM" (spelling?) is better
> for my purposes.
>
> But my google search came up empty.
> Has any one heard of LUM?
--
comp.lang.c.moderated - moderation address: clcm@ plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
|
| |
|
no comments
|
|
  |
Author: Douglas A. GwynDouglas A. Gwyn
Date: Feb 21, 2007 23:49
"WillerZ" willerz.plus.net> wrote in message
news:clcm-20070219-0005@plethora.net...
> For some reason, I thought you couldn't assign one struct to another. But,
> as you point out, you can. Sorry about that...
Struct assignment and auto aggregate initialization were not supported
in many old C compilers.
--
comp.lang.c.moderated - moderation address: clcm@ plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
|
| |
|
no comments
|
|
  |
|
|
  |
Author: JaiswalJaiswal
Date: Feb 21, 2007 23:49
Hello Everybody can we manipulate with system date and time through c
language, if yes then how?
--
comp.lang.c.moderated - moderation address: clcm@ plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
|
| |
|
2 Comments |
|
|
|
|
|
|