Ver Mensaje Individual
  #4 (permalink)  
Antiguo 28/07/2010, 09:57
Tikitios
 
Fecha de Ingreso: mayo-2008
Ubicación: Chile
Mensajes: 189
Antigüedad: 16 años
Puntos: 3
Respuesta: convertir de string a *char

la verdad esto no lo sabia, pero lo encontre en: http://www.cplusplus.com/reference/c...time/strftime/

Cita:
/* strftime example */
#include <stdio.h>
#include <time.h>

int main ()
{
time_t rawtime;
struct tm * timeinfo;
char buffer [80];

time ( &rawtime );
timeinfo = localtime ( &rawtime );

strftime (buffer,80,"Now it's %I:%M%p.",timeinfo);
puts (buffer);

return 0;
}
__________________
si tienes entre 18 y 20 años... entonces tienes 19 años xD