File: getstack.c

package info (click to toggle)
paxtest 0.9.6-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 360 kB
  • ctags: 145
  • sloc: ansic: 962; makefile: 587; asm: 53; sh: 44
file content (17 lines) | stat: -rw-r--r-- 352 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* getstack.c - Get the location of the stack and print it
 *              (Idea by Peter Roozemaal)
 *
 * Copyright (c)2003 by Peter Busser <peter@adamantix.org>
 * This file has been released under the GNU Public Licence version 2 or later
 */

#include <stdio.h>

int main( int argc, char *argv[] ){
	char a;

	printf( "%p\n", &a );

	exit( 0 );
}