[ create a new paste ] login | about

Link: http://codepad.org/ZYBD474T    [ raw code | output | fork ]

C, pasted on Aug 31:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <string.h>
#include <stdio.h>

int main()
{
    char tab[] = "qwertyuiopasdfghjklzxcvbnm";
    char* ptr_src = tab;
    char* ptr_dst = tab + 1;
    size_t sz = 5;
    memmove(ptr_dst, ptr_src, sz);
    printf(tab);
    return 0;
}


Output:
1
qqwertuiopasdfghjklzxcvbnm


Create a new paste based on this one


Comments: