All pastes #1736408 Raw Edit

Mine

public cpp v1 · immutable
#1736408 ·published 2010-01-03 18:05 UTC
rendered paste body
#include <iostream>using namespace std;int main( void ){	char *t = (char*)malloc(15);					// 15 Bytes anfordern	memset(t, 0, 14);								// 14 Bytes auf 0 setzen	cout << "Nach memset() mit 14 Bytes: \n";	for(unsigned i=0; i<15; i  )	{		cout << hex << "0x" << (int)t[i] << ' ';	}	memset(t, 0, 15);								// 15 Bytes auf 0 setzen	cout << "\n\nNach memset() mit 15 Bytes: \n";		for(unsigned i=0; i<14; i  )	{		cout << hex << "0x" << (int)t[i] << ' ';	}	cout << endl;	free((void*)t);	cin.ignore(cin.rdbuf()->in_avail());	cin.get();	return 0;}