Questions tagged [nul]

NUL is the abbreviation for the null character in several character sets

NUL has a value of 0 and is often written as the escape sequence \0. It is used as a terminator in standard strings.

179 questions
2
votes
1 answer

>nul redirection before or after command in batch

In command prompt, the following two lines give the same output, I want to know the usage difference between them. Thanks. >nul dir dir >nul
Moe
  • 462
  • 2
  • 16
2
votes
3 answers

*char ending with double '\0'

My code is crashing because of a lack of the char '\0' at the end of some strings. It's pretty clear to me why we have to use this termination char. My question is, is there a problem adding a potential 2nd null character to a character array - to…
Rômulo M. Farias
  • 1,483
  • 1
  • 15
  • 29
2
votes
2 answers

Nul byte representation in Python

I have question that I am having a hard time understanding what the code might look like so I will explain the best I can. I am trying to view and search a NUL byte and replace it with with another NUL type byte, but the computer needs to be able to…
2
votes
1 answer

How does a null character (\u0000) end up in a string?

I have a class in which there is a method that terminates the program in case a string has the NUL character in it. The particular expression is this: stringVar.indexOf('\u0000') < 0 This string is read from the user via Scanner and I really wonder…
Haggra
  • 3,539
  • 2
  • 20
  • 28
2
votes
0 answers

TypeError: "embedded NUL character" to stick little pictures on a white picture

I want to create a "DOBBLE" game, but, to create a DOBBLE card game, I just want to put some symbols (little pictures) on a bigger, but the Shell return this: "embedded NUL character". My program is: def creer_carte(L): S=associer() #a list of…
2
votes
2 answers

Update multiple columns in MySQL but only when a value is not null

I have a MySQL table with multiple columns, A, B, and C. I would like to update those columns using only one SQL statement. However, sometimes some of the columns can be null. So, if A is null, only update B and C. If A and B are null, only update…
Greeso
  • 7,544
  • 9
  • 51
  • 77
2
votes
1 answer

How to add a NUL character separator using AWK in bash?

I have a function which outputs some file paths, I need these paths are separated by NUL charachter instead of new line \n character. I tried following code: function myfunc { declare -a DUPS # some commands to fill DUPS with appropriate…
PHP Learner
  • 691
  • 1
  • 6
  • 14
2
votes
3 answers

Isn't '\0' != 0 true?

I am having some difficulties in understanding the condition of the while loop given below: int main() { char s[]="Let's Get it Started"; int i=0; while(s[i]!=0) { //do something ++i } } I know that string is…
Patel
  • 87
  • 8
2
votes
0 answers

Odd Notepad++ Issue...Code Completely Replaced by NUL

I just had a really strange thing happen to me with Notepad++, and it could have been potentially devastating. My entire JS/HTML5 file (~350 lines) was randomly replaced with NUL's. All I know is that I saved my program, left Notepad++ going, and…
Quicksting
  • 61
  • 1
  • 8
2
votes
1 answer

Sublime Text returning nul control character

This seems to happen sporadically but every so often, a nul control character will appear in my Sublime Text editor. The file types are not limited - so far it has appeared in .scss, .html, .php and .js files. Its particularly annoying when editing…
2
votes
1 answer

Create A Batch File Within Batch File - Echo ">NUL"

Situation: I have a text log file that gets updated frequently. I already have a batch file that can check it manually. I want it (upon start-up of batch) to create a new .bat. I'm having problems exporting/creating the "timeOut /t 2 >NUL" part. It…
Semedar
  • 35
  • 1
  • 2
  • 10
2
votes
4 answers

NUL undeclared- first use in this function

From the web I understand that C contains NUL keyword. But while compiling I get an error NUL undeclared first use in this function' My code fragment: for (;;) { char ch = (*pzDest = *pzSrc); if (ch == NUL) break; …
Tinyspark
  • 303
  • 2
  • 7
  • 17
1
vote
0 answers

IBOutlet will not instantiate

Alright, I have a weird one here. I have created a VERY simple UIViewController that has 1 big UITextView on it. In my .h file I declare a property like this: @property (nonatomic, strong) IBOutlet UITextView *displayTextView; and then synthesize…
iOS4Life
  • 226
  • 2
  • 13
1
vote
2 answers

wchar_t NUL in managed/unmanaged C++

I need to use this (unmanaged) C++ library. One of the methods has a wchar_t* as a parameter. Tried using it in C#, but all my attempts resulted in an error code 'invalid argument'. I wrote a managed C++ wrapper for it - same problem. Now I compared…
Stonehead
  • 366
  • 2
  • 12
1
vote
1 answer

How to read a text file containing NUL characters?

I have a file that contains NUL characters. This file is generated by another program I have no control over, but I have to read it in order to get some crucial information. Unfortunately, readChar() truncates the output with this warning: In…
Dan Chaltiel
  • 7,811
  • 5
  • 47
  • 92