Question: I'm looking for information about how to age data in a db, generally related to Oracle and Sql 
 Server, but any database would be good. Any examples or books containing examples of how the best 
 techniques would be cool.

Bob

Answer: 
You could use sprintf.

```
char s[20] = "Hello";
char s2[20];
sprintf(s2,"%s%s%s",s,s,s);

```
Here's a way to repeat a string in C, N times. 

That is have a string "abc" 
and I want a string of length 7 that is comprised of this string repeated. 

N = 7;
result: "abcabca" 

```
 while(Index != N){

    repeatedString[Index] = oldString[Index%strlen(oldString)];
    Index++;
 }

```

Where repeated String would be "abcabca" at the end, and oldString is "abc".