Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: UDP socket Pin
Moak13-Mar-08 15:05
Moak13-Mar-08 15:05 
GeneralRe: UDP socket Pin
nahitan17-Mar-08 5:20
nahitan17-Mar-08 5:20 
GeneralRe: UDP socket Pin
Moak17-Mar-08 6:36
Moak17-Mar-08 6:36 
Generalbehavior of strlen() [modified] Pin
koumodaki12-Mar-08 5:27
koumodaki12-Mar-08 5:27 
GeneralRe: behavior of strlen() modified Pin
Rajkumar R12-Mar-08 5:33
Rajkumar R12-Mar-08 5:33 
GeneralRe: behavior of strlen() Pin
koumodaki12-Mar-08 5:36
koumodaki12-Mar-08 5:36 
GeneralRe: behavior of strlen() Pin
Rajkumar R12-Mar-08 5:37
Rajkumar R12-Mar-08 5:37 
GeneralRe: behavior of strlen() Pin
David Crow12-Mar-08 5:43
David Crow12-Mar-08 5:43 
koumodaki wrote:
but '\0' is not present.


It is, just not at the location you desire. For example, if my_str resides at memory address 0x1234, then strlen() will start counting from that locaton until it finds a '\0' character. Use your debugger to see this in action.

"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: behavior of strlen() modified Pin
koumodaki12-Mar-08 5:44
koumodaki12-Mar-08 5:44 
GeneralRe: behavior of strlen() modified Pin
David Crow12-Mar-08 5:47
David Crow12-Mar-08 5:47 
GeneralRe: behavior of strlen() modified Pin
koumodaki12-Mar-08 5:54
koumodaki12-Mar-08 5:54 
GeneralRe: behavior of strlen() modified Pin
Rajkumar R12-Mar-08 5:47
Rajkumar R12-Mar-08 5:47 
GeneralRe: behavior of strlen() modified Pin
koumodaki12-Mar-08 5:54
koumodaki12-Mar-08 5:54 
GeneralRe: behavior of strlen() modified Pin
Chris Losinger12-Mar-08 8:16
professionalChris Losinger12-Mar-08 8:16 
GeneralQuery about Tray Icon Pin
ramana.g12-Mar-08 5:16
ramana.g12-Mar-08 5:16 
GeneralRe: Query about Tray Icon Pin
David Crow12-Mar-08 5:44
David Crow12-Mar-08 5:44 
GeneralRe: Query about Tray Icon Pin
ramana.g12-Mar-08 6:00
ramana.g12-Mar-08 6:00 
QuestionHow to count no. of folders in a directory? Pin
vandana712-Mar-08 5:15
vandana712-Mar-08 5:15 
AnswerRe: How to count no. of folders in a directory? Pin
Justin Perez12-Mar-08 5:17
Justin Perez12-Mar-08 5:17 
AnswerRe: How to count no. of folders in a directory? Pin
Mark Salsbery12-Mar-08 5:22
Mark Salsbery12-Mar-08 5:22 
AnswerRe: How to count no. of folders in a directory? Pin
ptr_Electron12-Mar-08 5:59
ptr_Electron12-Mar-08 5:59 
AnswerRe: How to count no. of folders in a directory? Pin
Hamid_RT12-Mar-08 7:46
Hamid_RT12-Mar-08 7:46 
GeneralRe: How to count no. of folders in a directory? Pin
ThatsAlok1-Apr-09 19:04
ThatsAlok1-Apr-09 19:04 
GeneralRAM disk driver for windows 2000 onwards. Pin
vikramlinux12-Mar-08 4:53
vikramlinux12-Mar-08 4:53 
GeneralRe: RAM disk driver for windows 2000 onwards. Pin
Iain Clarke, Warrior Programmer12-Mar-08 5:04
Iain Clarke, Warrior Programmer12-Mar-08 5:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.