Changeset 9c0a9b3 in mainline for src/lib/memstr.c


Ignore:
Timestamp:
2005-08-30T19:44:27Z (20 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d0c30f7
Parents:
8fc0d455
Message:

1) memcopy and _memcopy functions rewriten to ANSI C norm.
2) Repaired ia32,ia64 and mips version of SPARTAN to work with this memcopy functions
3) Warning for non declared funcions added and repaired ia32,ia64 and mips versions to pass build process with this warning and Werror option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lib/memstr.c

    r8fc0d455 r9c0a9b3  
    4242 *
    4343 */
    44 void _memcopy(__address src, __address dst, size_t cnt)
     44
     45char *  _memcopy(void * dst,const void *src, size_t cnt);
     46char *  _memcopy(void * dst,const void *src, size_t cnt)
    4547{
    4648        int i;
     
    4850        for (i=0; i<cnt; i++)
    4951                *((__u8 *) (dst + i)) = *((__u8 *) (src + i));
     52               
     53        return (char *)src;
    5054}
    5155
Note: See TracChangeset for help on using the changeset viewer.