Timpul în format standard Unix (sau POSIX [wikipedia.org]) poate fi afișat fără a recurge la cod C, folosind următoarea comandă de bash (combinat cu perl):
$ perl -e “print time();”; echo;
N-am pus aici întâmplător acest one-liner. În cam o zi de-acum, timpul Unix va fi 1234567890 [1234567890day.com], un eveniment aparte pentru sistemele *nix.
-
Home > code
the problem with media players
is that none of them implement a tolower function:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "ctype .h"
void fixthedamnuppercaseproblem (List s)
{
int i,j;
char **p = s.getList();
for (i=0;i<s .getLength();i++)
{
for (j=0;j<strlen(p[i]);j++)
[...]