Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- void isRealtime(char *mbuf){
- int *stackint;
- char param[30];
- int i;
- stackint = (int*)mbuf;
- /*Pakt eerste parameter na command*/
- stackint = stackint + 1;
- /*printf("%c\n", mbuf[(*stackint)++]);
- printf("%c\n", mbuf[(*stackint)++]);*/
- i = 0;
- printf("strlen: %d\n", strlen(mbuf));
- printf("strlen: %s\n", mbuf);
- }
- void main()
- {
- static char mbuf[100000] ={"0123456789"}; /* buffer for stack and zeroes */
- //isRealtime(&mbuf[0]);
- int *stackint;
- char dest[30] = {"destination1 \0 1234 \0 1345"};
- char src[20] = "sourcination";
- stackint = (int*)dest;
- /*Gets the first parameter after the command, i.e. "ls".*/
- stackint = stackint + 10;
- printf("Dit is stackint zelff %d", (*stackint)+1);
- printf("Dit is dest stackint: %d\n", dest[(*stackint)]);
- printf("Dit is dest stackint: %d\n", dest[(*stackint)+1]);
- printf("Dit is dest stackint: %d\n", dest[(*stackint)+2]);
- //memmove(dest, src, 9);
- //printf("Dit is de source nu : %s\nEn dit de dest: %s\n", src, dest);
- getchar();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement