Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: zius_oram
Forum: Programming 09-16-2011
1,663
Posted By Corona688
All 'segfault' means is that your program...
All 'segfault' means is that your program attempted to access a memory page that either
1) doesn't exist, or
2) your program doesn't have permissions to access.

There's almost endless reasons...
Forum: Programming 09-16-2011
1,663
Posted By shamrock
segfault is one kind of runtime error and there...
segfault is one kind of runtime error and there can be a number of reasons for it...the most common ones are buffer overruns or stepping into memory which is read only or dereferencing an invalid...
Forum: Programming 09-16-2011
1,663
Posted By achenle
This loop never ends, you just walk right off the...
This loop never ends, you just walk right off the end of the string:

for(;s < (s + n/2);++s)

n is a constant value, you keep incrementing s, and off you go.
Forum: Programming 09-06-2011
1,342
Posted By shamrock
The relationship between fork and the number of...
The relationship between fork and the number of processes created isnt 2^n but 2n...and in this program it will be 2n-2 due to...if (p>0) { fork();}
Forum: Programming 07-18-2011
3,008
Posted By jostber
sed is the tool for this: sed -e...
sed is the tool for this:

sed -e 's/<name>\(.*\)<\/name>/\1/g' -e 's/<description>\(.*\)<\/description>/\1/g' file.xml > newfile.txt
Forum: Programming 03-15-2011
7,450
Posted By Corona688
To mess with another process' memory in Linux you...
To mess with another process' memory in Linux you use ptrace (http://unix.stackexchange.com/questions/6301/how-do-i-read-from-proc-pid-mem-under-linux) as described here. This is the same way things...
Forum: Programming 01-16-2011
5,245
Posted By Corona688
Look at it this way. Is this group of 32 bits...
Look at it this way. Is this group of 32 bits signed or unsigned?
11111111111111111111111100000000 by itself it's neither... Whether it's signed or not is wholly up to how you interpret it.
...
Forum: Programming 01-14-2011
5,245
Posted By Corona688
Where the variable is stored has nothing to do...
Where the variable is stored has nothing to do with how it does pointer math. I can't see your code from here, but I'd venture they were all on the stack, with nothing in the heap. What type it's...
Forum: Hardware 10-04-2010
2,759
Posted By Corona688
You're not listening. This isn't the bad old...
You're not listening. This isn't the bad old days when drives came with defect lists. Drives these days handle their own defects and replace bad sectors with "spare" sectors when necessary, there's...
Forum: Programming 09-10-2010
4,425
Posted By Corona688
The internal representation of floating-point...
The internal representation of floating-point numbers is a well-documented standard (http://en.wikipedia.org/wiki/IEEE_754-2008).

As for why two things can represent identical numbers, it's...
Showing results 1 to 10 of 10

 

Featured Tech Videos

All times are GMT -4. The time now is 03:55 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy