Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env raku
|
||||
|
||||
sub MAIN (Int :l(:len(:$length))) {
|
||||
my Str $String = "Here am I";
|
||||
$*OUT.print: $String if $String.codes ≤ $length
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
#include<stdio.h>
|
||||
#include<stddef.h>
|
||||
#include<string.h>
|
||||
|
||||
int Query(char *Data, size_t *Length) {
|
||||
FILE *fp;
|
||||
char buf[64];
|
||||
|
||||
sprintf(buf, "/home/user/query.raku --len=%zu", *Length);
|
||||
if (!(fp = popen(buf, "r")))
|
||||
return 0;
|
||||
fgets(Data, *Length, fp);
|
||||
*Length = strlen(Data);
|
||||
return pclose(fp) >= 0 && *Length != 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue