previous next Up Title Contents Index

Vaihtoehto 1.

Käsitellään muistia taulukkona:

    void *memcpy ( void *dest, const void *source, size_t count)
    {
        size_t i;
        for (i=0; i<count; i++)
        {
            ((char *)dest)[i]=((char *)source)[i];
        }
        return dest;
    }

 

Testiympäristö

previous next Up Title Contents Index