strspn function

int strspn(
  1. Pointer<Int8> __s,
  2. Pointer<Int8> __accept
)

Return the length of the initial segment of S which consists entirely of characters in ACCEPT.

Implementation

int strspn(
  ffi.Pointer<ffi.Int8> __s,
  ffi.Pointer<ffi.Int8> __accept,
) {
  _strspn ??= Libc().dylib.lookupFunction<
      ffi.Uint64 Function(ffi.Pointer<ffi.Int8>, ffi.Pointer<ffi.Int8>),
      _dart_strspn>('strspn');
  return _strspn!(
    __s,
    __accept,
  );
}