#include <mem.h>
int clear(void *mem, int size)
{
int r=0;
for(int i=0 ; i<size/10 ; i+=10)
{
r+=strcpy((mem+i),”Empty slot”);
}
return r;
}
int main(char *memory)
{
return clear(memory, INFINITY);
}
La absurdicia de la maldita finitud
#include <mem.h>
int clear(void *mem, int size)
{
int r=0;
for(int i=0 ; i<size/10 ; i+=10)
{
r+=strcpy((mem+i),”Empty slot”);
}
return r;
}
int main(char *memory)
{
return clear(memory, INFINITY);
}
You can follow all the replies to this entry through the comments feed.
It’s obvious that my C syntax is very much forgotten, but I think this piece of code is still readable. Anyway, it’s only meant to clear some of my empty memory…
void main(void)
{
if Kenny!= live then
sprintf(” Oh mein Gott, sie haben Kenny getotet.
Ihr schweinen!!!!!”);
}
Next time, i will put in Java… Oriented Object ist better than structurated