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
0
votes
2 answers

How to modify an executable without corrupting it?

Is there a specific null char or a sequence of bytes which would not corrupt the executable if added in FRONT of the file? I tried adding NUL (00 hex) but it corrupts the executable every time. Is there some bytecode for NOP (no operation) or…
cen
  • 2,873
  • 3
  • 31
  • 56
0
votes
1 answer

CMD Return ErrorLevel Without Running Program

I'm running Powershell commands through a CMD prompt and I'd like to check if Powershell is installed first before I start running my commands. I'd like the script to exit if powershell doesn't exist without showing the actual error below. Here's my…
Ken J
  • 4,312
  • 12
  • 50
  • 86
-1
votes
2 answers

Why doesn't sizeof() doesn't include the NUL byte in this example?

Let's consider the following example: int main() { char some_string[] = "12345678"; printf("%zu", sizeof(some_string)); return 0; } Output 9 ...Program finished with exit code 0 Press ENTER to exit console.` The above is correct. The…
Dimi
  • 309
  • 5
  • 25
-1
votes
1 answer

How do we check if a value in an array is Null (None) or not?

my code: import random print("AI THAT WILL FIND OUT YOUR 5 letter text") ttt = input() fin = False lenof = 25 s = 0 used = [] lol = False used = [] five = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',…
Programmer
  • 105
  • 1
  • 1
  • 5
-1
votes
1 answer

How To Recover CSS Rules From A Corrupted CSS File

My .css file was working fine but today I noticed the website is not acting based on CSS rules so I tried to inspect the rues on browser and surprisingly I noticed the CSS file is empty! I tried to open the style.css file in Notepad++ and this is…
Suffii
  • 5,694
  • 15
  • 55
  • 92
-1
votes
2 answers

How to check if string is null in c#.net

I am reading text file in c#.net at the end one line is completely null but in foreach c# can not detect null string so It gets error string[] lines = System.IO.File.ReadAllLines(dir); List> items = new…
javad
  • 11
  • 1
  • 1
-1
votes
2 answers

jQuery: .height() returns null in .ready() but it works when run the same code console

I'am trying to assign the height to a main div container to give the scroll only to this "rightContent" div. All I am doing is finding height of all other DIV and subtracting the heights of those DIVs with the "window" height, to give the height to…
UID
  • 4,434
  • 11
  • 45
  • 75
-1
votes
3 answers

printf spits out garbage even though the char array is null terminated and checked

I have an assignment in which we're to make a Caesar (rot) cipher, but without using array notation (a[b]). It seems like it should work, but it spews out random garbage past the end of the string, even though a check is performed on lines 41 and…
anon
-2
votes
1 answer

How to write string not containing null byte character using python

How to write a string in a file ensuring that there is no nul byte character in a string in python? f.write(x1+','+x2+','+x3)
-2
votes
1 answer

PHPEXCEL weird characters on form inputs

I need some help with PHPEXCEL library, everything works great, I'm successfully extracting my SQL query to excel5 file, I need to give this file to transport company in order to auto collect informations about packages, unfotunately the generated…
Solidus
  • 11
  • 3
-2
votes
1 answer

Comparison in mysql Trigger for Null Value

This is my trigger after update record. The old.ActivatedDate always is Null and new.ActivatedDate always is not Null. This is my code, but it is not working because its condition is not returning true to continue other jobs. SET @OldActivateDate :=…
Mazi Tizeh
  • 15
  • 3
-3
votes
1 answer

Operator '+' is not defined for type 'integer' and type 'dbnull'

I'm try to calculate total column of data grid view, number data type in Oracle, data grid view column with null value..... Dim X As Integer Dim y As Integer For line As Integer = 0 To dgvAccDetail.RowCount - 1 X = X +…
Ejaz Sarwar
  • 37
  • 1
  • 1
  • 8
-3
votes
1 answer

XLSX corrupt after accidental open & save in Notepad

Is there a programmatic, built-in, or external method to recover a corrupt Excel file? I accidentally opened my .XLSX file (Excel 2010) in Windows Notepad, added a line of recognizable text, and saved it. Now the file cannot be opened by Excel, as…
karel
  • 11
  • 2
-4
votes
1 answer

Specific Value to a NULL Pointer

I was referring to NULL Pointer in What's the difference between a null pointer and a void pointer? According to the post reply by @AnT, "Formally, each specific pointer type (int *, char * etc.) has its own dedicated null-pointer value" I wrote…
Jon Wheelock
  • 263
  • 3
  • 16
1 2 3
11
12