home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!umn.edu!csus.edu!netcom.com!despair
- From: despair@netcom.com (Scott Hanson)
- Newsgroups: comp.os.vms
- Subject: C pointer question
- Message-ID: <1992Dec23.002554.19604@netcom.com>
- Date: 23 Dec 92 00:25:54 GMT
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Lines: 19
-
- I am porting some C code to the VAX, and am having many problems. One
- of them was fixed by DEC Support (after a lot of feeling around) by changing
- this:
- void foo(char a[])
- {
- bar(a);
- }
-
- to this:
- void foo(char a[])
- {
- bar(&a);
- }
-
- bar wants a char *, foo is passed a char *. What am I doing wrong?
- What is VMS C doing to my previously working code? Any suggestions?
- --
- Scott Hanson This has been a recording.
- despair@netcom.com
-