浏览代码

feat: 添加bom

SongZihuan 3 年之前
父节点
当前提交
185876c28e
共有 6 个文件被更改,包括 8 次插入8 次删除
  1. 1 1
      argument.c
  2. 1 1
      argument.h
  3. 1 1
      base64.c
  4. 1 1
      main.c
  5. 1 1
      main.h
  6. 3 3
      passwd.c

+ 1 - 1
argument.c

@@ -1,4 +1,4 @@
-#include "argument.h"
+#include "argument.h"
 
 #include <stdio.h>
 #include <string.h>

+ 1 - 1
argument.h

@@ -1,4 +1,4 @@
-#ifndef H_PASSWD_ARGUMENT_H
+#ifndef H_PASSWD_ARGUMENT_H
 #define H_PASSWD_ARGUMENT_H
 #include <stdbool.h>
 

+ 1 - 1
base64.c

@@ -1,4 +1,4 @@
-#include "main.h"
+#include "main.h"
 
 //定义base64编码表
 static char *base = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";  // base-64的基础编码 + 等号

+ 1 - 1
main.c

@@ -1,4 +1,4 @@
-#include "main.h"
+#include "main.h"
 #include "argument.h"
 #include <stdio.h>
 

+ 1 - 1
main.h

@@ -1,4 +1,4 @@
-#ifndef H_PASSWD_MAIN_H
+#ifndef H_PASSWD_MAIN_H
 #define H_PASSWD_MAIN_H
 #include <stdbool.h>
 #include <stdlib.h>

+ 3 - 3
passwd.c

@@ -1,4 +1,4 @@
-#include "main.h"
+#include "main.h"
 
 #include <ctype.h>
 #include <stdio.h>
@@ -119,7 +119,7 @@ void printInfo(char *account, char *passwd, char *note) {
     printf("Account: '%s'\n", account);
     printf("Password: '%s'\n", passwd);
     printf("Note: '%s'\n", note);
-    printf("H-Passwd: So that the password will not be forgotten.");
+    printf("H-Passwd: So that the password will not be forgotten.\n");
 }
 
 void printPasswdStr(char *account, char *passwd, char *note, char *passwd_str) {
@@ -128,5 +128,5 @@ void printPasswdStr(char *account, char *passwd, char *note, char *passwd_str) {
     printf("Password: '%s'\n", passwd);
     printf("Note: '%s'\n", note);
     printf("Label: '%s'\n", passwd_str);
-    printf("You can retrieve account information via label and key. (Include Account, Password and Note.)");
+    printf("You can retrieve account information via label and key. (Include Account, Password and Note.)\n");
 }