docs: def cfunc(name, result, *args):
      """Build and apply a ctypes prototype complete with parameter flags."""
      atypes = []
      aflags = []
      for arg in args:
          atypes.append(arg[1])
          aflags.append((arg[2], arg[0]) + arg[3:])
      return CFUNCTYPE(result, *atypes)((name, _fl), tuple(aflags))