0
0
0nera2021-07-28 01:56:21
C++ / C#
0nera, 2021-07-28 01:56:21

Memcmp implementation without libraries?

I write low-level code in C.
I urgently needed memcmp, but I can't use the libraries.

How can memcmp be implemented in C without libraries and assembler inserts?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
calculator212, 2021-07-28
@0nera

Look for different implementations on the Internet, even Wikipedia has implementations.
here is an implementation example

I
Ighor July, 2021-07-28
@IGHOR

Why is for (..) not suitable for comparing char by address range?

C
CityCat4, 2021-07-28
@CityCat4

Take the source from libc, drag it to your project.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question