?
Solved

Can _Size of memcpy be 0?

Posted on 2008-06-16
7
Medium Priority
?
221 Views
Last Modified: 2010-04-21
As per subject... Just wondering if this is the source of my error...

Thanks,
Uni
0
Comment
Question by:Unimatrix_001
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 53

Expert Comment

by:Infinity08
ID: 21791859
It should.
0
 
LVL 53

Expert Comment

by:Infinity08
ID: 21791866
You did mean the third parameter of memcpy, didn't you ?

        void *memcpy(void *dest, const void *src, size_t num);

(ie. num)
0
 
LVL 3

Author Comment

by:Unimatrix_001
ID: 21791865
It should....?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 53

Accepted Solution

by:
Infinity08 earned 2000 total points
ID: 21791869
Meaning that there's no reason why it wouldn't accept it.


What's the error you get ?
0
 
LVL 3

Author Comment

by:Unimatrix_001
ID: 21791870
Yep.
0
 
LVL 3

Author Closing Comment

by:Unimatrix_001
ID: 31467513
Okay thanks.... The error is about accessing invalid memory. I know where the error is now.

Thank you! :)
Uni
0
 
LVL 53

Expert Comment

by:Infinity08
ID: 21791874
>> I know where the error is now.

nice :)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses
Course of the Month13 days, 23 hours left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question