📄 test.c
字号:
#include <string.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdio.h>
#include <signal.h>
#include <errno.h>
#include <time.h>
#include <sys/time.h>
char* GetTime(char* strTime);
int main(int argc, char *argv[])
{
unsigned char str1[30];
unsigned char str2[30];
int nLen1;
int nLen2;
memset(str1, 0x00, sizeof(str1));
if(ToBase64("how are you", str1, 11, &nLen1) == -1 )
{
printf("Error: To Base64 error\n");
exit (-1);
}
printf("The Base64 is: %s \n", str1);
//FromBase64
if(FromBase64(str1, str2, nLen1, &nLen2) == -1 )
{
printf("Error: From Base64 error\n");
exit (-1);
}
printf("The Base64 is: %s \n", str2);
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -