This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How can I "reset" an array?

Hello,

I have an array. I have initialized it in this way:

volatile int memory[2][3] = {{0,0,0},{0,0,0}};

I need to clean, reset that array and I'd like to know if it exists an unique operation. I know how I can clean it with two for.

Thanks.

Parents
  • Thanks a lot my problem is solved but when the program is compiling there is a warning like that:

    GPT1.C(346): warning C140: 'memset' undefined; assuming 'extern int memset()'


    *** WARNING L20: DATA TYPES DIFFERENT
    SYMBOL: memset
    MODULE: GPT1.obj (GPT1)
    DEFINED: C:\KEIL\C166\LIB\C167M.LIB (MEMSET)

    What can I do?

Reply
  • Thanks a lot my problem is solved but when the program is compiling there is a warning like that:

    GPT1.C(346): warning C140: 'memset' undefined; assuming 'extern int memset()'


    *** WARNING L20: DATA TYPES DIFFERENT
    SYMBOL: memset
    MODULE: GPT1.obj (GPT1)
    DEFINED: C:\KEIL\C166\LIB\C167M.LIB (MEMSET)

    What can I do?

Children