bin_to_h.c
来自「EFI(Extensible Firmware Interface)是下一代BI」· C语言 代码 · 共 28 行
C
28 行
#include <stdio.h>#include <stdlib.h>intmain(void){ unsigned n = 0; int c; printf("UINT8 rmswitch_image[] = {\n"); while ((c = getchar()) != EOF) { printf("0x%02x,%s", c & 0xFF, (++n & 0x07) ? " " : "\n"); } if (n & 0x07) { printf("\n"); } printf( "};\n" "UINTN rmswitch_size = sizeof rmswitch_image;\n"); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?