delorie.com/archives/browse.cgi | search |
Message-ID: | <01BFC967.2C9F11E0@LEON.caresystems.com.au> |
From: | Leon <Leon AT caresystems DOT com DOT au> |
To: | "djgpp AT delorie DOT com" <djgpp AT delorie DOT com> |
Subject: | advance in allocated memory by 1 byte only |
Date: | Mon, 29 May 2000 12:12:34 +1000 |
MIME-Version: | 1.0 |
Reply-To: | djgpp AT delorie DOT com |
Hello i know one can use pointer arithmetic to advance the read/write location in memory allocated by malloc for example... Now since the sizeof char is 1 byte - it is possible to use a pointer to char when moving 1 byte at a time. but what about systems that may have different sizeof char (ie != 1 byte) how would one then be able to move through a memory block by 1 byte only? With best regards - Leon.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |