strncmp

6 views
Skip to first unread message

Mahsa Shafiei

unread,
Nov 20, 2015, 11:56:57 AM11/20/15
to OMNeT++ Users
i'm working with inet framework, aodvRouting.cc .
can someone explain about the following code , what does it mean (specially about the numbers)?!

if (!strncmp(datagram->getName(), PING_DATA, 4)
             || !strncmp(datagram->getName(), UDP_DATA, 3)
             || !strncmp(datagram->getName(), TCP_DATA, 3))

please help me.
thanks
Reply all
Reply to author
Forward
0 new messages