Updates from April, 2012 Toggle Comment Threads | Keyboard Shortcuts

  • Savita 6:17 pm on April 8, 2012 Permalink | Reply
    Tags: UNIX Shell   

    Getting more familiar with the UNIX Shell 

    Hello everyone 🙂
    Can someone give me suggestions on how to get  more familiar with the UNIX Shell ?

     
    • pprahul 6:14 am on April 9, 2012 Permalink | Reply

      Hmm.. what is exactly that you are trying to learn?? You want to try out some questions / assignments so that you get more familiar with UNIX shell. One good set of question that I came across : http://vanibala.150m.com/pdf_files/unixiq.pdf . There are many more online quiz on UNIX shell. The best way to get familiar is to solve problem!! How to get things done using shell.

      • Savita 9:01 pm on April 10, 2012 Permalink | Reply

        I would liker to learn some Unix Shell tools that would help me with downloading and building source code 🙂

        • pprahul 3:03 am on April 17, 2012 Permalink | Reply

          Oh Oh!! It would be best to follow the build instructions of each projects. Some of them have different ways. Like the gnome has their jhbuild and some other projects depend on the usual make utility.

  • Sowmya Ravidas 5:48 pm on February 27, 2012 Permalink | Reply  

    heloo…

    nice discussions going here 🙂
    I worked on my Data structure project. Got a warning. Incompatible pointer type. What does this mean? What I was trying to do is to return a pointer.

     
    • bithin 7:59 pm on February 27, 2012 Permalink | Reply

      It will be nice if you can give us a small description about your project and paste the code in which you are getting the error 🙂

    • Arvind 8:04 pm on February 27, 2012 Permalink | Reply

      Kindly use a pastebin such as http://paste.pocoo.org rather than paste code here!

    • pprahul 2:26 am on February 28, 2012 Permalink | Reply

      Yup, pls paste the code and then we could get a better idea about the problem. pastebin is the best place..

    • pprahul 10:51 am on February 28, 2012 Permalink | Reply

      Am just copy pasting the snippet here for ease..

      struct DNode* search(int info)
      {
      struct Dnode *temp=(struct Dnode*)malloc(sizeof(struct Dnode));
      temp=N.header->next;
      while(temp!=N.trailer)
      {
      if(temp->data==info)
      return temp; //Getting a warning here “Incompatible pointer type”
      temp=temp->next;
      }
      return 0;
      }

      • pprahul 11:01 am on February 28, 2012 Permalink | Reply

        Seems really cunning.. Ohk..!! So, guys shall we make this as a challenge ?? Person who answers this gets one point.. At the end of the month the highest scorer would get Prize!! We mean real Prize!!

    • Arvind 11:22 am on February 28, 2012 Permalink | Reply

      The following line

      struct Dnode *temp=(struct Dnode*)malloc(sizeof(struct Dnode));

      is of no use since temp is reassigned in the very next line.

      temp=N.header->next;

      What is the data type of N.header->next? I’ve a feeling that is the issue.

      • sai16vicky 11:25 am on February 28, 2012 Permalink | Reply

        Ya, I guess Arvind is right. Why do you want to allocate memory for a pointer?It is just a pointer rite?

        • sowmya 2:14 pm on February 28, 2012 Permalink | Reply

          hmm…. I removed the memory allocation part. But still the same warning remains.
          Warning: return from incompatible pointer type

c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel