<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="ltr">
<div></div>
<div>
<div dir="ltr"><span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important">Hello,</span></div>
<div dir="ltr"><span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important"><br>
</span></div>
<div><span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important">I would like to create a global variable
 for the following struct array, h1</span><br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important">dhash* h1 = new dhash[10];</span><br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important">typedef struct dhash{</span><br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important">        char* filenm;</span><br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important">        dlist* llist;</span><br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important">}dhash;</span><br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important">typedef struct dlist{</span><br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important">    int soffst;</span><br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important">    int eoffst;</span><br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important">    uint8_t* dptr;</span><br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important">}dlist;</span><br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important">I also need to allocate space for:</span><br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important">1) the field llist in struct dhash which
 is a pointer to another struct dlist and</span><br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important">2) the field dptr in struct dlist</span><br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important">Is there an example that I can refer to
 for doing this ?</span><br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<br style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">
<span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important">I tried to create a<span> </span></span><i style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">GlobalVariable</i><span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px"> using </span><i style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">ConstantStruct::get(StructType*,
 ArrayRef<Constant *>)</i><span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important">. I'm not sure
 how to get the second argument of type<span> </span></span><i style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px">ArrayRef<Constant
 *></i><span style="color: rgb(69, 77, 75); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(250, 249, 245); line-height: 20.159997940063477px; display: inline !important"> from the above variable h1.</span><br>
</div>
<div><br>
</div>
<div class="ms-outlook-ios-signature" id="ms-outlook-mobile-signature">
<div style="direction: ltr">Thanks,</div>
<div style="direction: ltr">Chaitra</div>
</div>
</div>
</div>
</body>
</html>