delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/02/08:02:32

To: rellwood AT aludra DOT usc DOT edu
Cc: djgpp AT delorie DOT com
Subject: Re: char to int
Message-ID: <19970302.075105.7567.1.fwec@juno.com>
References: <Pine DOT SV4 DOT 3 DOT 94 DOT 970301143114 DOT 733A-100000 AT aludra DOT usc DOT edu>
From: fwec AT juno DOT com (Mark T Logan)
Date: Sun, 02 Mar 1997 07:53:18 EST

On 1 Mar 1997 14:34:03 -0800 rellwood <rellwood AT aludra DOT usc DOT edu> writes:
>Is there a function I can use to convert a char to an int?  The 

char num = 2;
int num2;

num2 = num;

all there is to it.  You can cast it if you want, but
it shouldn't make any difference.

-Fwec

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019