Access to a pointer whose adress is in a String C : I want to make a memdump function that with fgets() gets the address from the keyboard to dump and then, using this function prints the contents of that adress in memory: 


    void print_bytes(void *object, size_t size)
    {
      char * bytes = object;
      size_t i;
    
      for(i = 0; i < size; i++)
      {
        printf("%c", bytes[i]);
      }
    }

so the problem is, that this code is always printing the same thing that i inputed by keyboard (the adress) instead of printing whatever is in the adress!