Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C API: make it possible to call K_copy() by passing a input file in ASCII format #629

Open
alixdamman opened this issue Jul 29, 2024 · 0 comments
Labels
C API enhancement New feature or request

Comments

@alixdamman
Copy link
Collaborator

The problem is that K_copy_1(...) calls K_load() where the file_type is deduced from the KDB type:

In file api/k_objfile.c, we have

static int K_copy_1(KDB* to, FNAME file, int no, char** objs, int* found, SAMPLE* smpl)
{
    int     i, pf, pt, rc = 0, nb_found = 0;
    KDB     *from;
    char    *ptr, *pack;
    SAMPLE  csmpl;

    from = K_load(KTYPE(to), file, no, objs);
    if(from == NULL) return(-1);

(...)
@alixdamman alixdamman added enhancement New feature or request C API labels Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C API enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant