����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2002-2005 Roman Zippel <zippel@linux-m68k.org>
* Copyright (C) 2002-2005 Sam Ravnborg <sam@ravnborg.org>
*/
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <xalloc.h>
#include "lkc.h"
/* file already present in list? If not add it */
struct file *file_lookup(const char *name)
{
struct file *file;
for (file = file_list; file; file = file->next) {
if (!strcmp(name, file->name)) {
return file;
}
}
file = xmalloc(sizeof(*file));
memset(file, 0, sizeof(*file));
file->name = xstrdup(name);
file->next = file_list;
file_list = file;
return file;
}
/* Allocate initial growable string */
struct gstr str_new(void)
{
struct gstr gs;
gs.s = xmalloc(sizeof(char) * 64);
gs.len = 64;
gs.max_width = 0;
strcpy(gs.s, "\0");
return gs;
}
/* Free storage for growable string */
void str_free(struct gstr *gs)
{
if (gs->s)
free(gs->s);
gs->s = NULL;
gs->len = 0;
}
/* Append to growable string */
void str_append(struct gstr *gs, const char *s)
{
size_t l;
if (s) {
l = strlen(gs->s) + strlen(s) + 1;
if (l > gs->len) {
gs->s = xrealloc(gs->s, l);
gs->len = l;
}
strcat(gs->s, s);
}
}
/* Append printf formatted string to growable string */
void str_printf(struct gstr *gs, const char *fmt, ...)
{
va_list ap;
char s[10000]; /* big enough... */
va_start(ap, fmt);
vsnprintf(s, sizeof(s), fmt, ap);
str_append(gs, s);
va_end(ap);
}
/* Retrieve value of growable string */
const char *str_get(struct gstr *gs)
{
return gs->s;
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| lxdialog | Folder | 0755 |
|
|
| tests | Folder | 0755 |
|
|
| Makefile | File | 7.61 KB | 0644 |
|
| conf | File | 126.77 KB | 0755 |
|
| conf.c | File | 20.01 KB | 0644 |
|
| confdata.c | File | 22.81 KB | 0644 |
|
| expr.c | File | 30.03 KB | 0644 |
|
| expr.h | File | 9.47 KB | 0644 |
|
| gconf-cfg.sh | File | 737 B | 0755 |
|
| gconf.c | File | 38 KB | 0644 |
|
| gconf.glade | File | 25.04 KB | 0644 |
|
| images.c | File | 6.42 KB | 0644 |
|
| images.h | File | 857 B | 0644 |
|
| internal.h | File | 172 B | 0644 |
|
| lexer.l | File | 8.99 KB | 0644 |
|
| lexer.lex.c | File | 112.63 KB | 0644 |
|
| list.h | File | 3.66 KB | 0644 |
|
| lkc.h | File | 3.75 KB | 0644 |
|
| lkc_proto.h | File | 1.92 KB | 0644 |
|
| mconf-cfg.sh | File | 1.42 KB | 0755 |
|
| mconf.c | File | 27.21 KB | 0644 |
|
| menu.c | File | 21.67 KB | 0644 |
|
| merge_config.sh | File | 4.65 KB | 0755 |
|
| nconf-cfg.sh | File | 1.32 KB | 0755 |
|
| nconf.c | File | 37.87 KB | 0644 |
|
| nconf.gui.c | File | 14.55 KB | 0644 |
|
| nconf.h | File | 2 KB | 0644 |
|
| parser.tab.c | File | 71.65 KB | 0644 |
|
| parser.tab.h | File | 5 KB | 0644 |
|
| parser.y | File | 15.26 KB | 0644 |
|
| preprocess.c | File | 11.01 KB | 0644 |
|
| qconf-cfg.sh | File | 598 B | 0755 |
|
| qconf.cc | File | 43.43 KB | 0644 |
|
| qconf.h | File | 6.4 KB | 0644 |
|
| streamline_config.pl | File | 16.42 KB | 0755 |
|
| symbol.c | File | 28.62 KB | 0644 |
|
| util.c | File | 1.52 KB | 0644 |
|