malloc example code