static void FileList_expandWildcards(FileList fl) { int i, j; for (i = 0; i < fl->size; i++) { if (isWildcard(fl->files[i])) { FileList expanded = wildcardFileList(fl->files[i]); if (expanded != NULL && expanded->size > 0) { JLI_MemFree(fl->files[i]); FileList_ensureCapacity(fl, fl->size + expanded->size); for (j = fl->size - 1; j >= i+1; j--) fl->files[j+expanded->size-1] = fl->files[j]; for (j = 0; j < expanded->size; j++) fl->files[i+j] = expanded->files[j]; i += expanded->size - 1; fl->size += expanded->size - 1; /* fl expropriates expanded's elements. */ expanded->size = 0; } FileList_free(expanded); } } }
bool Nequeo::Net::Sockets::IPAddress::isUnicast() const { return !isWildcard() && !isBroadcast() && !isMulticast(); }
bool IPAddress::isUnicast() const { return !isWildcard() && !isBroadcast() && !isMulticast(); }