# C code

**URL:** <https://community.unix.com/t/c-code/242172>\
**Category:** Programming\
**Created:** [June 10, 2009, 5:46am UTC](https://community.unix.com/t/c-code/242172 "2009-06-10T05:46:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dedalus](https://community.unix.com/letter_avatar/dedalus/32/5_5575768a8748004e209b776fc1b2916d.png) [@Dedalus](https://community.unix.com/u/Dedalus)\
**Post date:** [June 10, 2009, 5:46am UTC](https://community.unix.com/t/c-code/242172/1 "2009-06-10T05:46:28Z")

</div>

Hi

I don't understand this code line:

```nohighlight
struct iphdr *iph=(struct iphdr *)data;

```

where data is an u\_char.  
What I can see is that we are creating a pointer (iph) to a iphdr struct, but the right side is not very clear. Can anyone explain the meaning, please?

Thanks in advance

Dedalus

-----Post Update-----

ok  
i got it, is a casting operation

Thanks

D.
