如何在“ a”中添加图标“向下倾斜”

时间:2019-10-19 22:11:40

标签: javascript html font-awesome

PLZ帮我解决这个问题。.我需要在javascript中向a下方添加令人敬畏的图标字体,因为我的代码在li内显示了图标,而我的代码也是如此...

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

char *ltrim(char *s) {
    while (*s == ' ' || *s == '\t') s++;
    return s;
}

char getRegister(char *text) {
    if (*text == 'r' || *text=='R') text++;
    return atoi(text);
}

int assembleLine(char *text, unsigned char* bytes) {
    text = ltrim(text);
    char *keyWord = strtok(text," ");
    if (strcmp("add",keyWord) == 0) {
        bytes[0] = 0x10;
        bytes[0] |= getRegister(strtok(NULL," "));
        bytes[1] = getRegister(strtok(NULL," ")) << 4 | getRegister(strtok(NULL," "));
        return 2;
    }
}

int main(int argc, char **argv) {
    FILE *src = fopen(argv[1],"r");
    FILE *dst = fopen(argv[2],"w");
    while (!feof(src)) {
        unsigned char bytes[4];
        char line[1000];
        if (NULL != fgets(line, 1000, src)) {
            printf ("read: %s\n",line);
            int byteCount = assembleLine(line,bytes);
            fwrite(bytes,byteCount,1,dst);
        }
    }
    fclose(src);
    fclose(dst);
    return 0;
}

我想在一个

中添加我

0 个答案:

没有答案