mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
290 B
20 lines
290 B
char buffer[100];
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
void main()
|
|
{
|
|
char *f = buffer;
|
|
char *g = buffer;
|
|
|
|
printf("%8.8x\n", f);
|
|
f=(char*)memset(f,0x0a,12);
|
|
printf("%8.8x\n", f);
|
|
|
|
if (f == g) {
|
|
int k = 12;
|
|
while (k--)
|
|
printf("%2.2x", *f++);
|
|
}
|
|
}
|
|
|