08-08-2012
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i am a total newbie...and want to learn unix....firstly...how do i get unix....if it is available on the internet then where is it?...and how do i get this to work then.....plz plz help asap...really desperate now thanx in advance (10 Replies)
Discussion started by: chaitanyamanot
10 Replies
2. UNIX for Dummies Questions & Answers
Dear all,
I just found out that my company is thinking of installing a unix server and is considering either sun or ibm.
The thing is that i want to learn these two systems before they take a decision and maybe it will be a big career booster.
The problem is that i don't know anything about... (7 Replies)
Discussion started by: patslaiby
7 Replies
3. UNIX for Dummies Questions & Answers
Hi everybody, I have a VPS account and I have hit my limit for domains to manage through Plesk. I now need to begin administering new domains through UNIX. I've never used UNIX before but do have some experience with command line environments. I was able to connect today (I think). So the next... (1 Reply)
Discussion started by: snarky
1 Replies
4. UNIX for Dummies Questions & Answers
I am new to Unix and want to learn it thoroughly. From where can I download books/e-books and tutorials for free of charge:confused: (2 Replies)
Discussion started by: indiansoil
2 Replies
5. UNIX for Dummies Questions & Answers
Hi all
I'm a beginner in Unix world.I want to know from where i should start
Book,E-Book.web site ,...etc
by the way how many version does unix have? i should install which version? How to install it? and very important,is there any simulator for training purpose? for example can i install unix... (2 Replies)
Discussion started by: ZarrinPour
2 Replies
6. OS X (Apple)
I bought my first Mac a year ago December, and I love it. I have been interested in trying to write my own programs and don't even know where to start. I have never written any software before and was wondering if anyone could give me some recommendations on any books or other good websites that... (2 Replies)
Discussion started by: LittleWoman815
2 Replies
7. UNIX for Dummies Questions & Answers
hi world,
I am trying to learn how to program in c, I've gotten a few books and have been reading them, one even came with bloodshed dev-c compiler, it is not working, every time I build the hello world program it always comes back saying " G__~1.EXE: installation problem, cannot exec `cpp': No... (1 Reply)
Discussion started by: jsayres
1 Replies
8. Solaris
I'm just starting a 'serious' coding in UNIX, so what I need is to run a C code on UNIX, What do I have to install (app) prior to coding/running the code and how do I compile that code?
can I write my c code in UNIX or I need to have a visual studio for this? (7 Replies)
Discussion started by: Peevish
7 Replies
9. Shell Programming and Scripting
echo "Hi $username, guess what my favourite colour is!"
count=0
while ]
do
read colour
if
then
$count=1
echo "See ya later!"
elif
then
$count=1
echo "You guessed correctly! Great job!"... (6 Replies)
Discussion started by: solomonsnare
6 Replies
10. What is on Your Mind?
Hi everyone,
I am new to this forum and this is my very first post, one i think i will look back at many years from now and have nothing to regret about.
This is simply because i recently installed Linux (Ubuntu) on my system and downloaded a book titled, The Unix Programming Environment. I... (7 Replies)
Discussion started by: despiragado
7 Replies
BM(3) BSD Library Functions Manual BM(3)
NAME
bm_comp, bm_exec, bm_free -- Boyer-Moore string search
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/types.h>
#include <bm.h>
bm_pat *
bm_comp(u_char *pattern, size_t patlen, u_char freq[256]);
u_char *
bm_exec(bm_pat *pdesc, u_char *text, size_t len);
void
bm_free(bm_pat *pdesc);
DESCRIPTION
These routines implement an efficient mechanism to find an occurrence of a byte string within another byte string.
bm_comp() evaluates the patlen bytes starting at pattern, and returns a pointer to a structure describing them. The bytes referenced by
pattern may be of any value.
The search takes advantage of the frequency distribution of the bytes in the text to be searched. If specified, freq should be an array of
256 values, with higher values indicating that the corresponding character occurs more frequently. (A less than optimal frequency distribu-
tion can only result in less than optimal performance, not incorrect results.) If freq is NULL, a system default table is used.
bm_exec() returns a pointer to the leftmost occurrence of the string given to bm_comp() within text, or NULL if none occurs. The number of
bytes in text must be specified by len.
Space allocated for the returned description is discarded by calling bm_free() with the returned description as an argument.
The asymptotic speed of bm_exec() is O(len/patlen).
SEE ALSO
regexp(3), strstr(3)
Hume and Sunday, "Fast String Searching", Software Practice and Experience, Vol. 21, 11, pp. 1221-48, November 1991.
BSD
April 8, 2001 BSD