Skip to content

Instantly share code, notes, and snippets.

@movEAX
Created September 1, 2014 20:30
Show Gist options
  • Save movEAX/32740fc0d3c52e52a568 to your computer and use it in GitHub Desktop.
Save movEAX/32740fc0d3c52e52a568 to your computer and use it in GitHub Desktop.
Поковырять под gdb
const int bufferSize = 32;
void first()
{
char buffer[bufferSize];
memset( buffer, 'A', sizeof( buffer ) );
}
void second()
{
char buffer[bufferSize];
memset( buffer, 'B', bufferSize / 2 );
printf( "%s", buffer );
}
int main()
{
first();
second();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment