Solved

Can _Size of memcpy be 0?

Posted on 2008-06-16
7
177 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
  • 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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. …
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
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 user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now