home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!umn.edu!csus.edu!ucdavis!othello.ucdavis.edu!fzjaffe
- From: fzjaffe@othello.ucdavis.edu (Rory Jaffe)
- Newsgroups: comp.lang.c
- Subject: converting unsigned int to signed int
- Message-ID: <19226@ucdavis.ucdavis.edu>
- Date: 14 Nov 92 22:37:47 GMT
- Sender: usenet@ucdavis.ucdavis.edu
- Organization: University of California, Davis
- Lines: 4
-
- What is a safe, portable method of converting from signed int to
- unsigned? I want the most negative signed value to convert to 0, and
- the most positive signed value to (max signed int) + abs(max negative
- signed int).
-