Re: How to understand this line of c ?
- From: "Red Cent" <truthgrepper@xxxxxxxxxxxxx>
- Date: 4 Jan 2006 12:07:37 -0800
Keith Thompson writes:
>Can you provide an example, in C code, of what you're talking about?
(in reference to casting a string to an int)
Off the top of my head, I can't remember when I've used this. Vaguely
I remember having a program that needed to run X number of times. So I
passed an argument "123" which main's argv got.
Now in order to run it that many times, I needed to cast "123" to an
int 123, so I could use it in a counting loop.
If I get a chance, I'll look through some of my source code to see
where I've used it.
.
- Follow-Ups:
- Re: How to understand this line of c ?
- From: Keith Thompson
- Re: How to understand this line of c ?
- References:
- Re: How to understand this line of c ?
- From: fidlee
- Re: How to understand this line of c ?
- From: tmp123
- Re: How to understand this line of c ?
- From: fidlee
- Re: How to understand this line of c ?
- From: tmp123
- Re: How to understand this line of c ?
- From: truthgrepper
- Re: How to understand this line of c ?
- From: Kenneth Brody
- Re: How to understand this line of c ?
- From: truthgrepper
- Re: How to understand this line of c ?
- From: Keith Thompson
- Re: How to understand this line of c ?
- From: Red Cent
- Re: How to understand this line of c ?
- From: Keith Thompson
- Re: How to understand this line of c ?
- Prev by Date: Re: This is the end
- Next by Date: Re: c and webservices?
- Previous by thread: Re: How to understand this line of c ?
- Next by thread: Re: How to understand this line of c ?
- Index(es):
Relevant Pages
|