3 Replies Latest reply on Apr 5, 2011 9:03 AM by aprell

    Buffer Size

    Hayder
      Hi for all,
      Actually, I have confused in this code.
      char buf[1000];
      for (n=0; n<=1000; n+=100)
              RCCE_recv(&c, n, 0);
              RCCE_send(&c, n, 0);
      when I tried compile it, I got this error .

      cannot convert ‘char (*)[1000]’ to ‘char*’ for argument ‘1’ to ‘int RCCE_recv(char*, size_t, int)’

      cannot convert ‘char (*)[1000]’ to ‘char*’ for argument ‘1’ to ‘int RCCE_send(char*, size_t, int)’.

      why??

      Best regards

       

      Hayder