Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!netnews.upenn.edu!eniac.seas.upenn.edu!weisen From: weisen@eniac.seas.upenn.edu (Neil Weisenfeld) Newsgroups: comp.sys.ibm.pc.programmer Subject: `C' type question... Message-ID: <26854@netnews.upenn.edu> Date: 9 Jul 90 18:34:20 GMT Sender: news@netnews.upenn.edu Reply-To: weisen@eniac.seas.upenn.edu (Neil Weisenfeld) Distribution: usa Organization: University of Pennsylvania Lines: 30 Maybe I should read K&R a little more thoroughly before posting this, but... Why does the following segment of code give a conversion between integral types warning under MSC6.00? void strmem(char *mem, char *str, int n) { if (str && mem) while (n--) *mem++=(*str)?(*str++):ACTUAL_SPACE; } where ACTUAL_SPACE is defined: #define ACTUAL_SPACE ' ' The *mem++= line gets the error. Since everything is a char, I'm not sure what the problem is. Thanks in adv., Neil =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Neil I. Weisenfeld | InterNet: weisen@eniac.seas.upenn.edu Dept. of Computer and Info. Sciences | USPS: I dunno, I'm moving... University of Pennsylvania | PENNmail: Don't even try it... =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=