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
1
vote
0 answers

XML(SwipeView) Layout Attribute is returned as null

I have a SwipeView item in my XML and when I try to access it from my java class, sometimes it returns null. At somepoint yesterday, while having a break point to debug everything was working fine but that was only for a couple of times. I already…
cmario
  • 605
  • 1
  • 7
  • 22
1
vote
1 answer

Is skipping/ignoring NUL bytes on process substitution standardized?

Executive Summary Is it standard behavior that shells skip over NUL bytes when doing process substitution? For example, executing printf '\0abc' | read value && echo $value will yield abc. The NUL value is skipped, even though the hexdump of the…
dhke
  • 15,008
  • 2
  • 39
  • 56
1
vote
0 answers

Conversion failed when converting from a character string to a uniqueidentifier while importing table?

I'm trying to import a table with Navicat for SQL Server and I get this error: [Err] [Row1] [Imp] 42000 - [SQL Server]Conversion failed when converting from a character string to uniqueidentifier. [Err] [Row1] [Imp] INSERT INTO…
1
vote
2 answers

Writing NULL char to file in C

I am attempting to write an array of char to a BMP file in C. The problem with this is that whilst 0x00 values are required for the file, it seems C interprets this as the end of string when writing to the file i.e. as a NULL char. Is there any way…
Super Hacker
  • 124
  • 2
  • 3
  • 10
1
vote
2 answers

Is NUL declared by codeblocks?

char word[5]={"fayed"}; word[1]=NUL; printf("%s",word); It shows error ... and NUL to be undeclared.
Esterified
  • 63
  • 1
  • 2
  • 11
1
vote
3 answers

C++ String reaches over several NUL Bytes

I hate to ask this because I think this must be very trivial. But as someone who is used to high-level-languages this is a real problem. I got a C++ program which uses PDFium to generate an Image to a PDF. And i have a C# program which communicates…
user3869072
1
vote
1 answer

how to use the sqlite query to retrieve the data that i need from three table?

i have android application that use the sqlite database pre populated the problem is that i need to make a select query from 3 tables where the first…
user3499032
  • 25
  • 1
  • 11
1
vote
1 answer

how can i add '\0' at the end of a string which is referred to using a pointer?

I want to check if string b is suffix of string a. I have tried this so far: char a[20], b[20]; char *p; gets(a); gets(b); p = strstr(a,b); while(p != NULL) { if(p + strlen(b) == '\0') break; …
1
vote
0 answers

NUL character in xml file (using dom4j)

I am using dom4j to extract information in xml files(all in one folder). Here's my code: File folder = new File("c:/folder directory"); File[] listOfFiles = folder.listFiles(); FileOutputStream foutstream = new…
user1167910
  • 145
  • 2
  • 12
1
vote
3 answers

fwrite writes NUL

I'm trying to write to a file with PHP and this is the code I'm using (taken from this answer to my previous question): $fp = fopen("counter.txt", "r+"); while(!flock($fp, LOCK_EX)) { // acquire an exclusive lock // waiting to lock the…
BackSlash
  • 21,927
  • 22
  • 96
  • 136
1
vote
3 answers

How do I omit lines that contain Unicode NULL (U+0000)?

I am reading a file and am wondering how to skip lines that have Unicode NULL, U+0000? I have tried everything below, but none works: if($line) chomp($line) $line =~ s/\s*$//g;
John Ryann
  • 2,283
  • 11
  • 43
  • 60
1
vote
4 answers

Value cannot be null. Parameter name: String

Please take a look at the following code. It's in handler.asxh. public void ProcessRequest(HttpContext context) { context.Response.ContentType = "application/json"; new…
Kush
  • 196
  • 1
  • 2
  • 13
1
vote
2 answers

Conitnue to read through NUL

I got a .dat file, encoded in ANSI which contains NUL caracters (not only !). I wan't to read it into a str object iot cut something in the whole str obtained. But file.read() stops when the first NUL is reached. I'm lost :) My code…
mat.viguier
  • 127
  • 1
  • 1
  • 11
1
vote
1 answer

Using >nul in a variable

Does anyone know how to stop >nul being ignored when set in a variable, or is this not possible? I have a feeling that it's one of those things that will only work once all variables have been expanded or something, but it can't hurt to…
mythofechelon
  • 3,692
  • 11
  • 37
  • 48
0
votes
1 answer

Redirecting keyboard input+text+error text to nul with 2>&1 in CMD

I need to redirect keyboard input + text + error text in CMD to nul with maximum 2 expressions. Something like *command* >nul 2>&1. An alternative is >nul 1>nul 2>nul but as I said, I want to reduce the command as much as possible. Thanks.
user939034