History of Unix

Home Forums Retrocomputing History of Unix

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #308
    modrobert's avatarmodrobert
    Keymaster
      Up
      2
      Down
      ::

      Brian Kernighan’s speech “History of UNIX” from VCF.

      #340
      bonerboy69's avatarbonerboy69
      Participant
        Up
        1
        Down
        ::

        The creator of AWK.

        #341
        modrobert's avatarmodrobert
        Keymaster
          Up
          1
          Down
          ::

          Yes, to me his greatest achievement is “The C Programming Language”:

          The C programming language

          #408
          bonerboy69's avatarbonerboy69
          Participant
            Up
            1
            Down
            ::
            
            // C Program to sort an array using qsort() function in C
            #include <stdio.h>
            #include <stdlib.h>
            
            // If a should be placed before b, compare function should
            // return positive value, if it should be placed after b,
            // it should return negative value. Returns 0 otherwise
            int compare(const void* a, const void* b) {
                return (*(int*)a - *(int*)b);
            }
            
            int main() {
                int arr[] = { 4, 2, 5, 3, 1 };
                int n = sizeof(arr) / sizeof(arr[0]);
            	
              	// Sorting arr using inbuilt quicksort method
                qsort(arr, n, sizeof(int), compare);
            
                for (int i = 0; i < n; i++)
                    printf("%d ", arr[i]);
            
                return 0;
            }
            
            • This reply was modified 10 months ago by bonerboy69's avatarbonerboy69.
            • This reply was modified 10 months ago by bonerboy69's avatarbonerboy69.
            • This reply was modified 10 months ago by bonerboy69's avatarbonerboy69.
            • This reply was modified 10 months ago by bonerboy69's avatarbonerboy69.
          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.