Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.1 - Русский

Change language to:
English - Français - 日本語 - Português -

Please note that the recommended version of Scilab is 2024.1.0. This page might be outdated.
However, this page did not exist in the previous stable version.

Scilab help >> API Scilab > Low level functions > CallOverloadFunction


a C gateway function uses to call overload function or macro

Calling Sequence




Specifies which input argument will be used to create the name of overload function/macro


a C gateway function uses to call overload function or macro


This example returns the size:

  • returns the size of input argument

  • if input argument is a string returns the length

Gateway Source

int callOverload(char *fname,unsigned long fname_len)
    CheckRhs(1, 1);
    CheckLhs(0, 1);

    return 0;

Scilab test script

function x=%c_getSize(a)
    x = lenght(a);

function x=%s_getSize(a)
    x = size(a);

a = [1,2,3,4];
a_ref = [2,2];
assert_checkequal(getSize(a) == a_ref);

b = ["May","the","puffin";"be","with","you"];
b_ref = [3,3,6;2,4,3];
assert_checkequal(getSize(b) == b_ref);
Report an issue
<< AssignOutputVariable Low level functions CheckInputArgument >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Apr 02 17:37:58 CEST 2013