>>310
snprintf(dest,〜)
 char buf[100000];
 sprintf(buf,〜);
 strncpy(dest,buf,n