Search:

Type: Posts; User: steli89

Search: Search took 0.01 seconds.

  1. Thread: Memcpy problem

    by steli89
    Replies
    6
    Views
    2,619

    I'm trying to do this (for a university homework)...

    I'm trying to do this (for a university homework) because i have a Linux shared memory in which i have to write some data, and i can access it by a void* . I was trying to write an integer followed...
  2. Thread: Memcpy problem

    by steli89
    Replies
    6
    Views
    2,619

    Well.. the next memory location. Doesn't this...

    Well.. the next memory location. Doesn't this work the same way for void* like for any other pointer type? I'm trying to write 0 then "cucu" into that memory area.
  3. Thread: Memcpy problem

    by steli89
    Replies
    6
    Views
    2,619

    Memcpy problem

    I'm trying to create a block of memory with an int followed by a sequence of characters. The following code prints 0 and then, after the memcpy, 1668637440. The integer is modified. What am i doing...
  4. Replies
    4
    Views
    2,931

    Thank you! fflush seems to be the solution

    Thank you! fflush seems to be the solution
  5. Replies
    4
    Views
    2,931

    Question about fork and exec

    I'm a newbie to processes in general and i have this code:


    #include <sys/stat.h>
    #include <fcntl.h>
    #include <sys/types.h>
    #include <stdio.h>
    #include <unistd.h>
    #include <stdlib.h>
Results 1 to 5 of 5