Solved

Can _Size of memcpy be 0?

Posted on 2008-06-16
7
217 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
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!

 
LVL 53

Accepted Solution

by:
Infinity08 earned 500 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

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!

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

691 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