Re: Finding typecasts
Re: Finding typecasts
- Subject: Re: Finding typecasts
- From: Paul M <email@hidden>
- Date: Wed, 19 Aug 2009 10:54:17 +1200
In a terminal shell:
> grep -Hn '(pointer)' source1.c > lines_to_fix
> grep -Hn '(int)' source1.c >> lines_to_fix
> grep -Hn '(pointer)' source2.c >> lines_to_fix
> grep -Hn '(int)' source2.c >> lines_to_fix
...
or some variation thereof may work, depending on how it was done.
paulm
On 19/08/2009, at 9:09 AM, Mark Wagner wrote:
How can I find every line of a C program where a pointer is cast to an
integer, or vice-versa? I've got a library where the original author
treated pointers and integers as being the same thing, and I'm trying
to sort it out.
Thanks,
Mark Wagner
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden