Click here to Skip to main content
15,911,707 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
koumodaki wrote:
Since I am using strlen() to ge the buffer size...


strlen() dos not get the size of anything. Use sizeof instead.

koumodaki wrote:
...I wanted to know the side-effects of using the function this way.


At a minimum, the program won't work.

koumodaki wrote:
Also I have not initilized my_str to any value.


But it does get initialized, whether you did it or not.

koumodaki wrote:
So can I safetly assume that the variable len = 6, the size of decalred array?


You can, but you'd be wrong.

"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: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 
GeneralRe: RAM disk driver for windows 2000 onwards. Pin
vikramlinux12-Mar-08 19:42
vikramlinux12-Mar-08 19:42 
QuestionRe: RAM disk driver for windows 2000 onwards. Pin
Maxwell Chen12-Mar-08 19:52
Maxwell Chen12-Mar-08 19:52 

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.