home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!cs.utexas.edu!torn!cunews!revcan!micor!uuisis!bbs
- From: rrwood@uuisis.isis.org (Roy Wood)
- Subject: Why won't this compile under Think C 5.0?
- Organization: International Shared Information Service (Ottawa)
- Date: Tue, 25 Aug 92 16:25:26 GMT
- Message-ID: <T5L3PB3w164w@uuisis.isis.org>
- Sender: bbs@uuisis.isis.org
- Lines: 23
-
- Okay, I'm feeling frustrated and dumb. Look at this:
-
- /* ----------------------------------------------------- */
-
- extern void MyFunction(char);
-
- void MyFunction(theChar)
- char theChar;
- {
- /* do stuff */
- }
-
- /* ---------------------------------------------------- */
-
- Actually, the function prototype is getting pulled in from a #include file,
- and the "extern" doesn't really matter much (i.e. it still doesn't work even
- if I leave it out). The problem seems to center around the use of the
- "char" data type-- it works with int's, long's, mother's-maiden-names, etc.,
- but not for char's.
-
- So, what gives?
-
- -Roy
-