Example #1
0
uint KU_Users::first_free_sam() const
{
  uint t;

  for (t = 1000; t<65534; t++)
    if (lookup_sam(t) == -1)
      return t;

  return 0;
}
Example #2
0
uint KU::KGroups::first_free_sam()
{
    uint t;

    for (t = 30000; t<65534; t++)
        if (lookup_sam(t) == NULL)
            return t;

    return 0;
}