Esempio n. 1
0
// Show 'long' data type
void show_long_long(long long data) {
    // printf("[%ld:   long] - ", data);
    show_bytes((byte_pointer) &data, sizeof(long long));
}
Esempio n. 2
0
static QString show_bytes1(const QByteArray& arr, int base, int bytes_per_line, QString delimer)
{
    return show_bytes(arr, base, bytes_per_line, delimer, QString("\r\n"));
}
Esempio n. 3
0
// Show 'double' data type
void show_double(double data) {
    // printf("[%g: double] - ", data);
    show_bytes((byte_pointer) &data, sizeof(double));
}
Esempio n. 4
0
void show_pointer(void *x) {
	show_bytes((byte_pointer) &x, sizeof(void *));
}
Esempio n. 5
0
void show_long(long x) {
	show_bytes((byte_pointer) &x, sizeof(long));
}
Esempio n. 6
0
void show_float(float start)
{
        printf("show_float...\n");
	show_bytes((byte_pointer) &start, sizeof(float));
}
Esempio n. 7
0
void show_int(int x) {
	show_bytes((byte_pointer) &x, sizeof(int));
}
Esempio n. 8
0
void show_pointer(void *x) {
    show_bytes((byte_pointer) &x, sizeof(void *)); //line:data:show_bytes_amp3
}
Esempio n. 9
0
void string_ueg() {
/* $begin show-ustring */
const char *s = "ABCDEF";
show_bytes((byte_pointer) s, strlen(s)); 
/* $end show-ustring */
}
Esempio n. 10
0
void show_int(int x) {
    show_bytes((byte_pointer) &x, sizeof(int)); //line:data:show_bytes_amp1
}
Esempio n. 11
0
void show_float(float x) {
    show_bytes((byte_pointer) &x, sizeof(float)); //line:data:show_bytes_amp2
}
Esempio n. 12
0
int show_float(float x){
    show_bytes((byte_pointer) &x, sizeof(float));
    return 0;
}
Esempio n. 13
0
int show_int(int x){
    show_bytes((byte_pointer) &x, sizeof(int));
    return 0;
}
Esempio n. 14
0
int main(){
    test_show_bytes(0x12345);
    const char *s="abcdef";
    show_bytes((byte_pointer)s,strlen(s));
}
Esempio n. 15
0
void show_pointer(void *start)
{
        printf("show_pointer...\n");
	show_bytes((byte_pointer) &start, sizeof(void *));
}
Esempio n. 16
0
void string_leg() {
/* $begin show-lstring */
const char *s = "abcdef";
show_bytes((byte_pointer) s, strlen(s)); 
/* $end show-lstring */
}
Esempio n. 17
0
void show_int(int start)
{
        printf("show_int... %d\n", start);
	show_bytes((byte_pointer) &start, sizeof(int));
}
Esempio n. 18
0
// Show 'int' data type
void show_int(int data) {
    // printf("[%d:    int] - ", data);
    show_bytes((byte_pointer) &data, sizeof(int));
}
Esempio n. 19
0
void
show_pointer(void *pointer) {
    show_bytes((byte_pointer) &pointer, sizeof(void *));
}
Esempio n. 20
0
// Show 'float' data type
void show_float(float data) {
    // printf("[%.f:  float] - ", data);
    show_bytes((byte_pointer) &data, sizeof(float));
}
Esempio n. 21
0
void show_float(float x) {
	show_bytes((byte_pointer) &x, sizeof(float));
}
Esempio n. 22
0
// Show 'void' data type
void show_pointer(void *data) {
    // printf("[%d: void *] - ", (int)data);
    show_bytes((byte_pointer) &data, sizeof(void *));
}
Esempio n. 23
0
/* new functions */
void show_short(short x) {
	show_bytes((byte_pointer) &x, sizeof(short));
}
Esempio n. 24
0
// Show 'short' data type
void show_short(short data) {
    // printf("[%d:  short] - ", data);
    show_bytes((byte_pointer) &data, sizeof(short));
}
Esempio n. 25
0
void show_double(double x) {
	show_bytes((byte_pointer) &x, sizeof(double));
}
Esempio n. 26
0
File: test.c Progetto: kpgoing/CSAPP
void show_us(unsigned x){
	show_bytes((byte_pointer) &x, sizeof(unsigned));
}