2015年4月9日 星期四

C/C++ snippet: calc_network(), calc_broadcast()

計算網段
#include <netinet/in.h> /* in_addr_t */

in_addr_t calc_network(in_addr_t addr, in_addr_t netmask)
{
        return addr & netmask;
}
計算 broadcast
#include <netinet/in.h> /* in_addr_t */

in_addr_t calc_broadcast(in_addr_t addr, in_addr_t netmask)
{
        return addr | ~netmask;
}

2 則留言:

  1. Their goal is to easily provide the participant with the chance to discover ways to|learn to} play and win. The free slots in Casino Robots require neither registering a person profile on the website site}, nor downloading the game on a pc or cell gadget. Our slots are handy and accessible at all times, from any level all over the world. To start taking part in}, you simply want to select a title from our catalog click on on} on it. From this moment on, shall be able|it is possible 먹튀프렌즈 for you to} to play without experiencing any difficulties. And, despite the fact fact} that|although} these are demo versions, shall be able|it is possible for you to} to receive all types of bonuses, offers, further levels, scatter and wild symbols, etc.

    回覆刪除
  2. Thor Slots provides no deposit bonus, however existing players might obtain just rewards based on their gaming expertise. Setting apart just some amongst all the most effective free slot titles obtainable right here is not simple, we have to confess. We have many video games obtainable to play, which probably to|are inclined to} have completely different unique features - however right here we're 바카라 게임 compiling an inventory with the top 10 free online slots for you.

    回覆刪除