Is there any character that is never used (in ASCII or Unicode)

I only need one character that I can set in character arrays, indicating that a particular location or series of locations is free and available for data storage.

I need this because I am making a simple memory pool and should reset to free the blocks and indicate them as free.

Any help would be appreciated.

+6
source share
3 answers

All ASCII code points are used for characters, but there are many Unicode codes that are guaranteed not to be characters, such as U + FFFF .

I am not sure what you will do with this information. Although a code point is not a valid character, you can build strings that include it. These lines will not be legal in Unicode, but you seem to imply that you can store any data, not just text in Unicode.

+3
source

As mentioned earlier, ASCII code points are used for characters; however, you can easily limit your strings so you don’t use specific characters in ASCII. For example, the vertical tab is rarely used in any lines for regular files; therefore, you can require that all your character arrays exclude the symbol vertical tab and use such a character to do what you ask for. The same can be done for UNICODE; although, as mentioned earlier, it has some reserved non-character codes.

+1
source

Although this is not the best way to do it, if necessary, I would use the bell key because I have never seen anyone use it in my life.

Bell 007 in oct.

enter image description here

0
source

All Articles