Hlášky hodnocené kladně uživatelem „madA12345“
<a> Teď čtu na novinkách.cz anketu, co bychom dělali, kdybychom dostali 2,5 MLD korun...
<a> ...tak nevím jak vy, ale já bych ze všeho nejdříve koupil elektrickou jednotku RegioPanter a jezdil bych s ní každé ráno do školy ^_^
<a> Ušetřil bych za jízdenku!
Komentář: MLD - Miliarda | Má rád vlaky a jezdí jimi do školy ;)
p_found = strrchr(filename,'_');
if (p_found)
{
//length=p_found-filename;
strncpy(cust_date,p_found+1,7);
cust_date[7]='\0';
printf("Konec: \"%s\"\n",cust_date);
} else {
printf("File naming has bad structure. Skipping.\n");
continue;
}
if (!strcmp(cust_date,"2012-07")) strcpy(cust_date,"2012-06");
if (!strcmp(cust_date,"2012-08")) strcpy(cust_date,"2012-07");
if (!strcmp(cust_date,"2012-09")) strcpy(cust_date,"2012-08");
if (!strcmp(cust_date,"2012-10")) strcpy(cust_date,"2012-09");
if (!strcmp(cust_date,"2012-11")) strcpy(cust_date,"2012-10");
if (!strcmp(cust_date,"2012-12")) strcpy(cust_date,"2012-11");
if (!strcmp(cust_date,"2013-01")) strcpy(cust_date,"2012-12");
if (!strcmp(cust_date,"2013-02")) strcpy(cust_date,"2013-01");
if (!strcmp(cust_date,"2013-03")) strcpy(cust_date,"2013-02");
if (!strcmp(cust_date,"2013-04")) strcpy(cust_date,"2013-03");
if (!strcmp(cust_date,"2013-05")) strcpy(cust_date,"2013-04");
if (!strcmp(cust_date,"2013-06")) strcpy(cust_date,"2013-05");
if (!strcmp(cust_date,"2013-07")) strcpy(cust_date,"2013-06");
if (!strcmp(cust_date,"2013-08")) strcpy(cust_date,"2013-07");
if (!strcmp(cust_date,"2013-09")) strcpy(cust_date,"2013-08");
if (!strcmp(cust_date,"2013-10")) strcpy(cust_date,"2013-09");
if (!strcmp(cust_date,"2013-11")) strcpy(cust_date,"2013-10");
if (!strcmp(cust_date,"2013-12")) strcpy(cust_date,"2013-11");
if (!strcmp(cust_date,"2014-01")) strcpy(cust_date,"2013-12");
if (!strcmp(cust_date,"2014-02")) strcpy(cust_date,"2014-01");
if (!strcmp(cust_date,"2014-03")) strcpy(cust_date,"2014-02");
if (!strcmp(cust_date,"2014-04")) strcpy(cust_date,"2014-03");
if (!strcmp(cust_date,"2014-05")) strcpy(cust_date,"2014-04");
if (!strcmp(cust_date,"2014-06")) strcpy(cust_date,"2014-05");
if (!strcmp(cust_date,"2014-07")) strcpy(cust_date,"2014-06");
if (!strcmp(cust_date,"2014-08")) strcpy(cust_date,"2014-07");
if (!strcmp(cust_date,"2014-09")) strcpy(cust_date,"2014-08");
if (!strcmp(cust_date,"2014-10")) strcpy(cust_date,"2014-09");
if (!strcmp(cust_date,"2014-11")) strcpy(cust_date,"2014-10");
if (!strcmp(cust_date,"2014-12")) strcpy(cust_date,"2014-11");
if (!strcmp(cust_date,"2015-01")) strcpy(cust_date,"2014-12");
strcpy(new_dir,"");
strcat(new_dir,customer);
strcat(new_dir,"_std-capa_");
strcat(new_dir,cust_date);
printf("Creating directory: \"%s%s\"\n",output_directory_path,new_dir);
Komentář: Aplikace zacala na prelomu roku tvorit soubory s datumem o mesic napred. Vsichni se hrozne divili jak je to mozne, vyvojar uz od nas odesel, tak jsem byl donucen se podival do kodu. A co jsem nenasel, bezvadne kurvitko :D